Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751528AbZLREqO (ORCPT ); Thu, 17 Dec 2009 23:46:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750773AbZLREqL (ORCPT ); Thu, 17 Dec 2009 23:46:11 -0500 Received: from lennier.cc.vt.edu ([198.82.162.213]:52001 "EHLO lennier.cc.vt.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750729AbZLREqG (ORCPT ); Thu, 17 Dec 2009 23:46:06 -0500 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Michael Stone Cc: Mark Seaborn , 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 , Bryan Donlan , Evgeniy Polyakov , "C. Scott Ananian" , James Morris , "Eric W. Biederman" , Bernie Innocenti , Randy Dunlap , =?iso-8859-1?Q?Am=E9rico?= Wang Subject: Re: [PATCH 1/3] Security: Add prctl(PR_{GET,SET}_NETWORK) interface. (v2) In-Reply-To: Your message of "Thu, 17 Dec 2009 22:29:57 EST." <20091218032957.GA23514@heat> From: Valdis.Kletnieks@vt.edu References: <20091218030056.GC3047@heat> <20091218032957.GA23514@heat> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1261111438_3855P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 17 Dec 2009 23:43:58 -0500 Message-ID: <24998.1261111438@localhost> X-Mirapoint-Received-SPF: 128.173.34.103 localhost Valdis.Kletnieks@vt.edu 2 pass X-Mirapoint-IP-Reputation: reputation=neutral-1, source=Fixed, refid=n/a, actions=MAILHURDLE SPF TAG X-Junkmail-Info: (45) HELO_LOCALHOST X-Junkmail-Status: score=45/50, host=zidane.cc.vt.edu X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A020208.4B2B0892.004A,ss=1,fgs=0, ip=0.0.0.0, so=2009-09-22 00:05:22, dmn=2009-09-10 00:05:08, mode=multiengine X-Junkmail-IWF: false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1493 Lines: 38 --==_Exmh_1261111438_3855P Content-Type: text/plain; charset=us-ascii On Thu, 17 Dec 2009 22:29:57 EST, Michael Stone said: > Daniel Bernstein has observed [1] that security-conscious userland processes > may benefit from the ability to irrevocably remove their ability to create, > bind, connect to, or send messages except in the case of previously connected > sockets or AF_UNIX filesystem sockets. We provide this facility by implementing > support for a new prctl(PR_SET_NETWORK) flag named PR_NETWORK_OFF. Dan does indeed have a point - but is this better achieved via either the already-existing LSM interfaces (opening the stacking-LSM can of worms again), or the SECCOMP framework? We already have 2 other ways to turn off stuff, do we really want a third way? Alternatively, could a more generalized prctl interface be leveraged to handle SECCOMP, and/or other targeted things that want to stack with LSM? --==_Exmh_1261111438_3855P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFLKwiOcC3lWbTT17ARAlQXAKC6d81avJ04SnI9WNH2f9q7Gi1FogCg7ul0 zgcYrz/N6wcSMy+vxvxC0dI= =iwSI -----END PGP SIGNATURE----- --==_Exmh_1261111438_3855P-- -- 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/