Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753939AbbDOMJi (ORCPT ); Wed, 15 Apr 2015 08:09:38 -0400 Received: from cantor2.suse.de ([195.135.220.15]:48088 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753661AbbDOMJ1 (ORCPT ); Wed, 15 Apr 2015 08:09:27 -0400 Date: Wed, 15 Apr 2015 14:09:24 +0200 (CEST) From: Jiri Kosina To: Greg Kroah-Hartman cc: Andy Lutomirski , Linus Torvalds , Andrew Morton , Arnd Bergmann , "Eric W. Biederman" , One Thousand Gnomes , Tom Gundersen , "linux-kernel@vger.kernel.org" , Daniel Mack , David Herrmann , Djalal Harouni Subject: Re: [GIT PULL] kdbus for 4.1-rc1 In-Reply-To: <20150415120042.GF19274@kroah.com> Message-ID: References: <20150413190350.GA9485@kroah.com> <20150413204547.GB1760@kroah.com> <20150414175019.GA2874@kroah.com> <20150415120042.GF19274@kroah.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1138 Lines: 29 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/