From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Lameter Subject: Re: [PATCH] capabilities: Ambient capability set V2 Date: Sat, 7 Mar 2015 09:09:05 -0600 (CST) Message-ID: References: <20150301233359.GA22196@mail.hallyn.com> <20150305171326.GA14998@mail.hallyn.com> <20150306163443.GA28386@mail.hallyn.com> <20150306200838.GA29198@mail.hallyn.com> Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: In-Reply-To: <20150306200838.GA29198-7LNsyQBKDXoIagZqoN9o3w@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Serge E. Hallyn" Cc: Andy Lutomirski , Serge Hallyn , Jonathan Corbet , Aaron Jones , LSM List , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Andrew Morton , "Andrew G. Morgan" , Mimi Zohar , Austin S Hemmelgarn , Markku Savela , Jarkko Sakkinen , Linux API , Michael Kerrisk List-Id: linux-api@vger.kernel.org On Fri, 6 Mar 2015, Serge E. Hallyn wrote: > > I think that's right. fI doesn't set pI. > > Right. The idea is that for the running binary to get capability x in its > pP, its privileged ancestor must have set x in pI, and the binary itself > must be trusted with x in fI. The ancestor here is ambient_test and when it is run pI will not be set despite the cap setting. Therefore anything is spawns cannot have the inheritance bits set either. This plainly does not make any sense whatsoever. If this is so as it seems to be then we should be able to remove the inheritance bits because they have no effect.