From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758466AbbCESlm (ORCPT ); Thu, 5 Mar 2015 13:41:42 -0500 Received: from resqmta-ch2-07v.sys.comcast.net ([69.252.207.39]:43329 "EHLO resqmta-ch2-07v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758245AbbCESli (ORCPT ); Thu, 5 Mar 2015 13:41:38 -0500 Date: Thu, 5 Mar 2015 12:41:36 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: "Serge E. Hallyn" cc: Serge Hallyn , Andy Lutomirski , Jonathan Corbet , Aaron Jones , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, akpm@linuxfoundation.org, "Andrew G. Morgan" , Mimi Zohar , Austin S Hemmelgarn , Markku Savela , Jarkko Sakkinen , linux-api@vger.kernel.org, Michael Kerrisk Subject: Re: [PATCH] capabilities: Ambient capability set V2 In-Reply-To: <20150305171326.GA14998@mail.hallyn.com> Message-ID: References: <20150301233359.GA22196@mail.hallyn.com> <20150305171326.GA14998@mail.hallyn.com> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 Mar 2015, Serge E. Hallyn wrote: > > > > > > So I'd say drop this change ^ > > > > Then the ambient caps get ignored for a executables that have capabilities > > seton the file? > > Yes. Those are assumed to already know what they're doing. Do they? What if there is a LD_PRELOAD library that redirects socket calls and that needs raw device access (there are actually a number of software packages like that to reduce the latency of network I/O. See for example Solarflare's software products and the current rsocket libary in OFED. There are cap issues if the rsocket library should be made useful for Ethernet instead of infiniband). > Why? Do you foresee cases where a file that has fP set needs capabilities > that aren't in its fP? Yes due to the library issues. > It seems more likely that they'll risk misbehaving due to an unexpected set > of caps. The userspace driver code in the library wont work since it does not have the caps to access the raw device registers.