From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753755Ab2LJO2L (ORCPT ); Mon, 10 Dec 2012 09:28:11 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:53280 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753414Ab2LJO2J (ORCPT ); Mon, 10 Dec 2012 09:28:09 -0500 Date: Mon, 10 Dec 2012 08:27:57 -0600 From: Serge Hallyn To: "Andrew G. Morgan" Cc: "Serge E. Hallyn" , Andy Lutomirski , "Serge E. Hallyn" , linux-security-module@vger.kernel.org, James Morris , Markku Savela , Casey Schaufler , Eric Paris , Kees Cook , linux-kernel@vger.kernel.org Subject: Re: [RFC] Capabilities still can't be inherited by normal programs Message-ID: <20121210142757.GA8137@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): > I'm still missing something with the problem definition. > > So far if I follow the discussion we have determined that inheritance as > implemented is OK except for the fact that giving user an inheritable pI > bit which gives them default permission to use all binaries endowed with > the corresponding file fI bit. There is another objection which ahs been raised, namely that it leaves too many tiny but crucial bits of security relevant information spread throughout the filesystem. This has also been said about using security.selinux xattrs. The answer as there could be a good set of tools to set and report the system wide state. In fact, libcap-ng provides such tools, to list the file capabilities throughout the system and capabilities in use by all running programs. -serge