On Wed, Apr 15, 2015 at 02:09:24PM +0200, Jiri Kosina wrote: > 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?
I can't answer that, discuss it with the developers of that userspace code please. > Why can't it just rely on the kernel to provide final answer to "to reboot > or not to reboot, that is the question"? Usually you want to do a few things before telling the kernel to reboot, like unmount all filesystems and the like :) Anyway, we are getting away from the code at hand, please, let's discuss that. greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/