From: Casey Schaufler Subject: Re: RFC: capabilities(7): notes for kernel developers Date: Thu, 15 Dec 2016 16:44:30 -0800 Message-ID: <7a6b5f38-de8e-d8d4-e6f7-feae3f8d192e@schaufler-ca.com> References: <43dcc6dc-265b-5eaf-3a70-701e05200b9f@gmail.com> <9ed6371f-3d38-45b1-a85b-1fbb3e5b4fc7@schaufler-ca.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: owner-linux-security-module@vger.kernel.org To: John Stultz Cc: "Michael Kerrisk (man-pages)" , "Serge E. Hallyn" , James Morris , Kees Cook , Andy Lutomirski , Jann Horn , "Eric W. Biederman" , linux-man , linux-security-module , lkml List-Id: linux-man@vger.kernel.org On 12/15/2016 4:31 PM, John Stultz wrote: > On Thu, Dec 15, 2016 at 12:40 PM, Casey Schaufler > wrote: >> On 12/15/2016 11:41 AM, Michael Kerrisk (man-pages) wrote: >>> On 12/15/2016 05:29 PM, Casey Schaufler wrote: >>>> CAP_WAKE_ALARM could readily be CAP_TIME. >>> Actually, I don't quite understand what you mean with that sentence. >>> Could you elaborate? >> Should have said CAP_SYS_TIME >> >> Setting an alarm could be considered a time management function, >> depending on what it actually does. > Just a nit here. CAP_WAKE_ALARM is more about the privilege of waking > a system from suspend, while CAP_SYS_TIME covers the ability to set > the time. One wouldn't necessarily want to give applications which > could wake a system up the capability to also set the time. Doesn't really matter, except that an ignorant developer might make the mistake I did and assume that WAKE_ALARM was somehow related to time management. If you want to use it as an example don't let my dunderheadedness get in your way. > thanks > -john Again, thank you for taking this on. It should be a big help.