Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757853AbZAHBWc (ORCPT ); Wed, 7 Jan 2009 20:22:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754971AbZAHBWV (ORCPT ); Wed, 7 Jan 2009 20:22:21 -0500 Received: from tundra.namei.org ([65.99.196.166]:3669 "EHLO tundra.namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754919AbZAHBWU (ORCPT ); Wed, 7 Jan 2009 20:22:20 -0500 Date: Thu, 8 Jan 2009 12:22:17 +1100 (EST) From: James Morris To: Michael Stone cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH] Security: Implement and document RLIMIT_NETWORK. In-Reply-To: <20090107210758.GH3164@didacte.laptop.org> Message-ID: References: <1231307334-9542-1-git-send-email-michael@laptop.org> <1231307334-9542-2-git-send-email-michael@laptop.org> <20090107114703.GB28161@ioremap.net> <20090107210758.GH3164@didacte.laptop.org> User-Agent: Alpine 1.10 (LRH 962 2008-03-14) 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: 1358 Lines: 34 [added lsm list to the cc] > 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 rlimit called > RLIMIT_NETWORK. > > This facility is particularly attractive to security platforms like OLPC > Bitfrost [2] and to isolation programs like Rainbow [3] and Plash [4]. > > [1]: http://cr.yp.to/unix/disablenetwork.html > [2]: http://wiki.laptop.org/go/OLPC_Bitfrost > [3]: http://wiki.laptop.org/go/Rainbow > [4]: http://plash.beasts.org/ Have you considered utilizing network namespaces [1] ? A process created with a private network namespace has no network interfaces configured, except loopback, which is down. Does this do what you want? The launcher could optionally allow local IP by bringing up the loopback interface. [1] http://lxc.sourceforge.net/network.php - James -- 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/