Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752047Ab0AAPGK (ORCPT ); Fri, 1 Jan 2010 10:06:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751951Ab0AAPGI (ORCPT ); Fri, 1 Jan 2010 10:06:08 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:46237 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751691Ab0AAPGF (ORCPT ); Fri, 1 Jan 2010 10:06:05 -0500 Date: Fri, 1 Jan 2010 16:06:04 +0100 From: Pavel Machek To: Bryan Donlan Cc: Valdis.Kletnieks@vt.edu, Michael Stone , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-security-module@vger.kernel.org, Andi Kleen , David Lang , Oliver Hartkopp , Alan Cox , Herbert Xu , Evgeniy Polyakov , "C. Scott Ananian" , James Morris , "Eric W. Biederman" , Bernie Innocenti , Mark Seaborn , Randy Dunlap , Am?rico Wang , Tetsuo Handa , Samir Bellabes , Casey Schaufler , "Serge E. Hallyn" Subject: Re: RFC: disablenetwork facility. (v4) Message-ID: <20100101150604.GF3944@atrey.karlin.mff.cuni.cz> References: <20091227190802.GH11737@elf.ucw.cz> <20091228060759.GB13266@heat> <20091228101006.GA19984@elf.ucw.cz> <8817.1262011044@localhost> <20091228205511.GD1637@ucw.cz> <3e8340490912281333l1459f769yf621a36ad1ed6482@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3e8340490912281333l1459f769yf621a36ad1ed6482@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1665 Lines: 49 Hi! > > it is really only required for binaries setuid to someone else, but > > that would be too ugly. (Plus, as someone said, ping is great for > > leaking data out.) > > No, this is not sufficient; one needs only to find a setuid process > that can be convinced to run a program with the original (pre-suid) Ok. > Or one can target a non-root setuid program that may have security > holes - how about nethack? Well, security holes are bad idea, who'd know? > That said, I do feel this is a separate issue. The process should > first drop its ability to suid; then it can freely apply additional > restrictions without there being any risk of breaking setuid > applications. ACK. > In short, how does this sound: > * Add an API to allow processes to permanently revoke their own > ability to gain privileges from setuid-exec > * Add this disablenetwork facility, conditional on dropping > setuid-exec abilities > > This also paves the way for: > * Allow processes that have dropped said suid ability to freely create > new namespaces (and chroot) Works for me. > Which, combined with doing whatever audits are necessary to allow > cross-network-namespace uses of unix domain sockets, actually > eliminates the need for the disablenetwork API. :) Cool ;-). 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/