Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758679Ab0GHWeN (ORCPT ); Thu, 8 Jul 2010 18:34:13 -0400 Received: from tundra.namei.org ([65.99.196.166]:43272 "EHLO tundra.namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756282Ab0GHWeL (ORCPT ); Thu, 8 Jul 2010 18:34:11 -0400 Date: Fri, 9 Jul 2010 08:33:48 +1000 (EST) From: James Morris To: "David P. Quigley" cc: hch@infradead.org, viro@zeniv.linux.org.uk, casey@schaufler-ca.com, sds@tycho.nsa.gov, "Matthew N. Dodd" , trond.myklebust@fys.uio.no, bfields@fieldses.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, selinux@tycho.nsa.gov, linux-nfs@vger.kernel.org Subject: Re: [PATCH 04/10] SELinux: Add new labeling type native labels In-Reply-To: <1278595878.2494.186.camel@moss-terrapins.epoch.ncsc.mil> Message-ID: References: <1278513086-23964-1-git-send-email-dpquigl@tycho.nsa.gov> <1278513086-23964-5-git-send-email-dpquigl@tycho.nsa.gov> <1278595878.2494.186.camel@moss-terrapins.epoch.ncsc.mil> User-Agent: Alpine 2.00 (LRH 1167 2008-08-23) 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: 1189 Lines: 37 On Thu, 8 Jul 2010, David P. Quigley wrote: > > Otherwise, this is a global policy decision which affects all NFSv4 > > mounts, right? > > > > > > I don't believe we have that ability in any other file system. NFS is quite different to other filesystems. Your files are on other systems, for example, which may or may not support security labeling. > If you want to decide that you want to use genfs style labels on NFSv4 > just use a context mount. So, we enable this feature, and virtually all existing mounts break because the servers do not support labeling. > That way you can have the default behavior be > use security label support unless you don't want to and then you can > have a context mount. It needs to be the other way around. This is a new feature, so the default needs to be the existing behavior, with security labeling as an option to enable at mount time. - 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/