Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752586AbXA2UL7 (ORCPT ); Mon, 29 Jan 2007 15:11:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752588AbXA2UL7 (ORCPT ); Mon, 29 Jan 2007 15:11:59 -0500 Received: from zombie.ncsc.mil ([144.51.88.131]:34508 "EHLO jazzdrum.ncsc.mil" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752586AbXA2UL6 (ORCPT ); Mon, 29 Jan 2007 15:11:58 -0500 Subject: Re: [PATCH] sysctl selinux: Don't look at table->de From: Stephen Smalley To: casey@schaufler-ca.com Cc: "Eric W. Biederman" , Andrew Morton , Ingo Molnar , tglx@linutronix.de, linux-kernel@vger.kernel.org, selinux@tycho.nsa.gov, jmorris@namei.org In-Reply-To: <493253.19989.qm@web36606.mail.mud.yahoo.com> References: <493253.19989.qm@web36606.mail.mud.yahoo.com> Content-Type: text/plain Organization: National Security Agency Date: Mon, 29 Jan 2007 15:07:33 -0500 Message-Id: <1170101253.3294.6.camel@moss-spartans.epoch.ncsc.mil> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2.1 (2.8.2.1-3.fc6) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1181 Lines: 32 On Mon, 2007-01-29 at 11:08 -0800, Casey Schaufler wrote: > --- Stephen Smalley wrote: > > > True, but a system that disables proc is likely a > > system with a custom > > policy anyway, and dependency on proc is fairly > > basic to selinux these > > days (due to reliance on /proc/self/attr for process > > attribute > > manipulation in place of the old selinux syscalls). > > Possibly we should > > just make selinux depend on proc and drop the #ifdef > > there. > > Alternativly you could move the SELinux specific > bits out of /proc/self/attr into an equivalent > /selinux/self/attr and avoid that /proc dependency. We could, but I don't see any compelling reason to do so. We were specifically told to use proc for the selinux process attributes when we refactored the selinux api for 2.6 inclusion, as they are per-process state and fit naturally into proc. -- Stephen Smalley National Security Agency - 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/