Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161130AbbBDQnT (ORCPT ); Wed, 4 Feb 2015 11:43:19 -0500 Received: from resqmta-po-09v.sys.comcast.net ([96.114.154.168]:52586 "EHLO resqmta-po-09v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966503AbbBDQnQ (ORCPT ); Wed, 4 Feb 2015 11:43:16 -0500 Date: Wed, 4 Feb 2015 10:43:14 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: "Andrew G. Morgan" cc: "Serge E. Hallyn" , Serge Hallyn , Serge Hallyn , Andy Lutomirski , Jonathan Corbet , Aaron Jones , "Ted Ts'o" , linux-security-module@vger.kernel.org, lkml , akpm@linuxfoundation.org Subject: Re: [capabilities] Allow normal inheritance for a configurable set of capabilities In-Reply-To: Message-ID: References: <20150202171257.GD24351@ubuntumail> <20150203155544.GE2923@mail.hallyn.com> <20150203172653.GB4748@mail.hallyn.com> <20150204155617.GE16726@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 Content-Length: 583 Lines: 16 On Wed, 4 Feb 2015, Andrew G. Morgan wrote: > I was thinking more like this: > > int override = secure(SECURE_AMBIENT_PRIVS) && > cap_isclear(caps->inheritable.cap); Uhh.. Then processes that require other capabilties would not pass them through anymore to other stuff that they invoke. Also the new caps need to be set somewhere. -- 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/