From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Lameter Subject: Re: [PATCH] capabilities: Ambient capability set V2 Date: Fri, 6 Mar 2015 09:47:54 -0600 (CST) Message-ID: References: <20150301233359.GA22196@mail.hallyn.com> <20150305171326.GA14998@mail.hallyn.com> Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-2063140391-1425656874=:8136" Return-path: In-Reply-To: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Andy Lutomirski Cc: Jarkko Sakkinen , Andrew Morton , LSM List , "Andrew G. Morgan" , Michael Kerrisk , Mimi Zohar , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Austin S Hemmelgarn , Aaron Jones , Serge Hallyn , "Serge E. Hallyn" , Markku Savela , Linux API , Jonathan Corbet List-Id: linux-api@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-2063140391-1425656874=:8136 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Thu, 5 Mar 2015, Andy Lutomirski wrote: > > Yes due to the library issues. > > You can't LD_PRELOAD and fP together. And I'm still unconvinced that > ambient caps can ever be safe in conjunction with fP. I'll grill you > next week on what you're trying to do that makes you want this :) >>From the ld.so manpage: LD_PRELOAD A whitespace-separated list of additional, user-specified, ELF shared libraries to be loaded before all others. This can be used to selec‐ tively override functions in other shared libraries. For setuid/set‐ gid ELF binaries, only libraries in the standard search directories that are also setgid will be loaded. So this mechanism has not been made to work for binaries with caps? We have to keep using setuid? --8323329-2063140391-1425656874=:8136--