Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753918Ab0AJVOc (ORCPT ); Sun, 10 Jan 2010 16:14:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753234Ab0AJVOb (ORCPT ); Sun, 10 Jan 2010 16:14:31 -0500 Received: from tundra.namei.org ([65.99.196.166]:41724 "EHLO tundra.namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752932Ab0AJVOa (ORCPT ); Sun, 10 Jan 2010 16:14:30 -0500 Date: Mon, 11 Jan 2010 08:11:55 +1100 (EST) From: James Morris To: Pavel Machek cc: "Serge E. Hallyn" , 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 , Valdis Kletnieks , Bryan Donlan , Evgeniy Polyakov , "C. Scott Ananian" , "Eric W. Biederman" , Bernie Innocenti , Mark Seaborn , Randy Dunlap , Am?rico Wang , Tetsuo Handa , Samir Bellabes , Casey Schaufler Subject: Re: [PATCH 2/3] Security: Implement disablenetwork semantics. (v4) In-Reply-To: <20100101143100.GA3944@atrey.karlin.mff.cuni.cz> Message-ID: References: <20091227010441.GA12077@heat> <20091227010650.GA12190@heat> <20091230185053.GB18712@us.ibm.com> <20100101143100.GA3944@atrey.karlin.mff.cuni.cz> User-Agent: Alpine 2.00 (LRH 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 799 Lines: 24 On Fri, 1 Jan 2010, Pavel Machek wrote: > > Quoting Michael Stone (michael@laptop.org): > > > Implement security_* hooks for socket_create, socket_bind, socket_connect, > > > socket_sendmsg, and ptrace_access_check which return -EPERM when called from a > > > process with networking restrictions. Exempt AF_UNIX sockets. > > > > > > Signed-off-by: Michael Stone > > > > Acked-by: Serge Hallyn > > For the record: NAK, as it introduces security holes. Please elaborate. -- James Morris -- 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/