Re: [GIT PULL] kdbus for 4.1-rc1

Jiri Kosina
2015-04-15T12:09:38Z

On Wed, 15 Apr 2015, Greg Kroah-Hartman wrote:

> 'systemctl reboot' calls a bunch of other things to determine if you
> have local access to the machine, or permissions to reboot the machine
> (i.e. CAP_SYS_BOOT), and other things that polkit might allow you to do,
> and then, it decides to reboot or not. That happens today, right? I
> don't understand the argument here.

And what exactly is the argument that this is the way it should be
implemnted?

Why can't it just rely on the kernel to provide final answer to "to reboot
or not to reboot, that is the question"?

At the end of the day, it's the kernel that decides whether it will really
ultimately ask the platform to reboot.

If, for whatever reason (which might be completely invisible to userspace)
kernel decides not to do so, userspace has to be able to recover from such
failure in any case.

--
Jiri Kosina
SUSE Labs