From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753912Ab2LJOgS (ORCPT ); Mon, 10 Dec 2012 09:36:18 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:53341 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753721Ab2LJOgQ (ORCPT ); Mon, 10 Dec 2012 09:36:16 -0500 Date: Mon, 10 Dec 2012 08:36:09 -0600 From: Serge Hallyn To: "Andrew G. Morgan" Cc: Andy Lutomirski , "Serge E. Hallyn" , Casey Schaufler , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, Kees Cook , James Morris , Eric Paris , "Serge E. Hallyn" , Markku Savela Subject: Re: [RFC] Capabilities still can't be inherited by normal programs Message-ID: <20121210143609.GB8137@sergelap> References: <20121204135445.GA7420@mail.hallyn.com> <20121205210528.GA9047@sergelap> <20121205222040.GB14884@sergelap> <50C13F0E.5010401@schaufler-ca.com> <20121207144233.GA6681@mail.hallyn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Andrew G. Morgan (morgan@kernel.org): > > It breaks down because, currently, users with nonzero pI have no > > direct ability to wield the capabilities. That means that every > > single binary with fI bits set needs to be as careful as a setuid-root > > binary to avoid leaking privilege to the caller. (Obviously, binaries > > with fP set need to be careful. IMO binaries with only fI set should > > not need to exercise any particular care to defend themselves from > > their callers.) > > True. Uh, I disagree. Not true. (I suspect Andrew meant True to the first two sentences, not the last parenthesized one?) -serge