Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752112Ab0AAWi2 (ORCPT ); Fri, 1 Jan 2010 17:38:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751828Ab0AAWi1 (ORCPT ); Fri, 1 Jan 2010 17:38:27 -0500 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:53709 "EHLO www.etchedpixels.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751568Ab0AAWi0 (ORCPT ); Fri, 1 Jan 2010 17:38:26 -0500 Date: Fri, 1 Jan 2010 22:39:19 +0000 From: Alan Cox To: Casey Schaufler Cc: "Eric W. Biederman" , "Andrew G. Morgan" , "Serge E. Hallyn" , Bryan Donlan , Benny Amorsen , Michael Stone , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-security-module@vger.kernel.org, Andi Kleen , David Lang , Oliver Hartkopp , Herbert Xu , Valdis Kletnieks , Evgeniy Polyakov , "C. Scott Ananian" , James Morris , Bernie Innocenti , Mark Seaborn , Randy Dunlap , =?UTF-8?B?QW3DqXJpY28=?= Wang , Tetsuo Handa , Samir Bellabes , Pavel Machek , Al Viro , Casey Schaufler Subject: Re: [RFC][PATCH v3] Unprivileged: Disable raising of privileges Message-ID: <20100101223919.00b60938@lxorguk.ukuu.org.uk> In-Reply-To: <4B3E6A8B.7060705@schaufler-ca.com> References: <551280e50912300652r1007dee0j8de750bf33af9b3c@mail.gmail.com> <20091230201712.GA23999@us.ibm.com> <20091230212931.233003b9@lxorguk.ukuu.org.uk> <20091230230042.5d2e78ac@lxorguk.ukuu.org.uk> <3e8340490912301844p4fddaf57ke58ceeba9582e0fa@mail.gmail.com> <20091231173334.5e3d7557@lxorguk.ukuu.org.uk> <20091231175257.GA7210@us.ibm.com> <551280e50912311020x2bdc5b1o699a601f67b91662@mail.gmail.com> <20100101144300.023f47a5@lxorguk.ukuu.org.uk> <4B3E6A8B.7060705@schaufler-ca.com> X-Mailer: Claws Mail 3.7.3 (GTK+ 2.18.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2845 Lines: 61 > Sure. Not that it would be hard to do so. And have a careful look > at the recent discussions on checkpoint/restart. Indeed the LSM "no removal of restrictions" is simply a policy decision that came about early on - no reason to assume it is a right policy decision if it can be shown otherwise. > Application developers want systems that work the way the man pages > say they work. They do not want additional or conditional restrictions. I disagree somewhat. They want them to work they way they did when they tested it and the way they believe it works. Most of them never read the manual or the standards documents. Take a look at the whining when stat() size data stopped happening by chance to reflect bytes queued in a pipe. > How many commercial applications start their installation instructions > with "disable SELinux"? (Hint: lots) And I am sure it time the sequence is going to go "Why did your business web site get taken out for four weeks" / "We disabled SELinux as the app said" / "Sue the app vendor" If you tell someone to disable the safety systems on a crane you get prosecuted. > > I am sick and fed up with the conversations that go: > > - I want to do X. > > - X has been implemented. > > - Sorry I can't use X as implemented because you have to be root to > > use X. > > > Exasperated sigh. Privileged operations are privileged for a reason, > not always a good reason mind you, but a reason nonetheless. If > your application developers want to do things that require privilege > you need to teach them how to write privileged programs safely. We've > been working on exotic variations of system controls for decades > and in the end your programmers have to write decent code because > we haven't yet come up with a way to make all the things that people > want their programs to do safe. A useful question here would be to ask what it means to containerise security. At the moment you can do this with virtual machines and while its a nasty managability/security trade off the choice is there for the most part and you can point at things like the amazon cloud as working examples. We don't really have the notion of what setuidness means within a container or how you can create a container which has its own internal setuid, security model, LSM and 'superuser' but can't mess anything else up, only for a virtual machine. [I'll note Hurd tried to explore this area in part because Hurd was designed around a model that history proved bogus - a big computer being equitably shared with all the power possible but without messing up other users] Alan -- 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/