lkml.org 
[lkml]   [2015]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [GIT PULL] kdbus for 4.1-rc1
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


\
 
 \ /
  Last update: 2015-04-15 14:41    [W:0.279 / U:0.952 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site