Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754095AbbBYVuX (ORCPT ); Wed, 25 Feb 2015 16:50:23 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:48918 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752907AbbBYVuS (ORCPT ); Wed, 25 Feb 2015 16:50:18 -0500 Date: Wed, 25 Feb 2015 22:50:14 +0100 From: Pavel Machek To: Christoph Lameter Cc: Serge Hallyn , Serge Hallyn , Andy Lutomirski , Jonathan Corbet , Aaron Jones , "Ted Ts'o" , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, akpm@linuxfoundation.org, morgan@kernel.org Subject: Re: [capabilities] Allow normal inheritance for a configurable set of capabilities Message-ID: <20150225215014.GD29527@amd> References: <20150202171257.GD24351@ubuntumail> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1437 Lines: 36 Hi! > > A key concept behind posix capabilities is that the privilege comes from > > both the person and the file being executed. As you say below basically > > anything can be executed by the program so that is completely violated. > > Well this patch does not change that. Its just that the file being > executed can inherit the parent caps without having to set caps in the new > executable. > > > Still, it's not that different from mmapping some arbitrary code and > > jumping into it whlie retaining caps. > > Owww. Thats a pretty far jump from what this patch does. > > > Not saying this is a good idea necessarily, but worth thinking about. > > Well we keep on having actual problems with caps for long years now. We > need a solution. This means a patch that solves the issue. One solution is to put capabilities into the elf executable. I believe there was patch for that. That means you don't need to add capability support into filesystems... Old documentation is at http://atrey.karlin.mff.cuni.cz/~pavel/elfcap.html Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/