Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757427Ab0ANRhM (ORCPT ); Thu, 14 Jan 2010 12:37:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757416Ab0ANRhI (ORCPT ); Thu, 14 Jan 2010 12:37:08 -0500 Received: from e38.co.us.ibm.com ([32.97.110.159]:50341 "EHLO e38.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756851Ab0ANRhG (ORCPT ); Thu, 14 Jan 2010 12:37:06 -0500 Date: Thu, 14 Jan 2010 11:36:39 -0600 From: "Serge E. Hallyn" 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 , =?iso-8859-1?Q?Am=E9rico?= Wang , Tetsuo Handa , Samir Bellabes , Casey Schaufler , Pavel Machek , Al Viro , Kyle Moffett , Andrew Morgan Subject: Re: [PATCH 2/3] Security: Implement disablenetwork semantics. (v4) Message-ID: <20100114173639.GA15587@us.ibm.com> References: <20100114164702.GA13439@us.ibm.com> <20100114171309.GA6372@heat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100114171309.GA6372@heat> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1266 Lines: 34 Quoting Michael Stone (michael@laptop.org): > Quoting Michael Stone (michael@laptop.org): > > >Ah - but I worry that if you do that Alan or others will object. Where do > >you plan to store the disablenet_allowed bit? > > If using prctl directly, I would store the bit in the task->network bitfield > introduced by the earlier patches. > > >You can use security_prctl() to keep the code out of sys_prctl(). > > I don't understand this suggestion; can you clarify? (Also, for what it's > worth: I intended to put the check for CAP_SETPCAP in prctl_set_network().) > > >but you still have the question of whether you add a bit to the task struct, > >use task->security and not stack with selinux, use a thread flag, or try to > >enable stacking of task->security. > > For this revision of the patch, I will use the same approach as the previous > patches (conditionally compiled task->network). > > Michael > > P.S. - Patches to follow tonight or tomorrow. Cool I'll just wait for the patches :) thanks, -serge -- 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/