Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751878Ab0AQGIw (ORCPT ); Sun, 17 Jan 2010 01:08:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751413Ab0AQGIt (ORCPT ); Sun, 17 Jan 2010 01:08:49 -0500 Received: from mail-pw0-f42.google.com ([209.85.160.42]:34598 "EHLO mail-pw0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750831Ab0AQGIs (ORCPT ); Sun, 17 Jan 2010 01:08:48 -0500 MIME-Version: 1.0 In-Reply-To: <20100115081028.GA14004@heat> References: <20100114173639.GA15587@us.ibm.com> <20100115081028.GA14004@heat> From: Kyle Moffett Date: Sun, 17 Jan 2010 01:01:41 -0500 Message-ID: Subject: Re: disablenetwork (v5) patches To: Michael Stone Cc: 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" , James Morris , "Eric W. Biederman" , Bernie Innocenti , Mark Seaborn , Randy Dunlap , =?UTF-8?Q?Am=C3=A9rico_Wang?= , Tetsuo Handa , Samir Bellabes , Casey Schaufler , "Serge E. Hallyn" , Pavel Machek , Al Viro , Andrew Morgan , selinux@tycho.nsa.gov Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1250 Lines: 25 On Fri, Jan 15, 2010 at 03:10, Michael Stone wrote: > As promised, here are patches implementing and documenting a CAP_SETPCAP-gated > "enable" bit along with a couple of other tweaks discussed earlier in the > thread. For ease of development and review, the following four patches > extend the disablenetwork (v4) patch series rather than replacing it. To be honest, I'm still not convinced that this is the right way to approach your problem. I think you would be much better off with something analogous to the stripped-down SELinux policy I sent in an earlier email (150 lines, give or take). By using the appropriate SELinux hooks you can obtain the *exact* same enforcement, but without adding any code to the kernel. I have some time this week to split out my SELinux policy build machinery; I will pull out a standalone set of files to build the policy and do some extra testing on one of my bog-standard Debian boxes and then send it all out again. Cheers, Kyle Moffett -- 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/