From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx12.netapp.com ([216.240.18.77]:13510 "EHLO mx12.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758303Ab3ETVM5 convert rfc822-to-8bit (ORCPT ); Mon, 20 May 2013 17:12:57 -0400 From: "Myklebust, Trond" To: Eric Paris CC: Steve Dickson , "David P. Quigley" , Linux NFS list , "Linux FS devel list" , Linux Security List , SELinux List Subject: Re: [PATCH 13/13] Kconfig: Add Kconfig entry for Labeled NFS V4 client Date: Mon, 20 May 2013 21:12:56 +0000 Message-ID: <1369084374.52168.3.camel@leira.trondhjem.org> References: <1368719808-14584-1-git-send-email-SteveD@redhat.com> <1368719808-14584-14-git-send-email-SteveD@redhat.com> In-Reply-To: Content-Type: text/plain; charset=US-ASCII MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: On Mon, 2013-05-20 at 16:57 -0400, Eric Paris wrote: > On Thu, May 16, 2013 at 11:56 AM, Steve Dickson wrote: > > From: Steve Dickson > > > > This patch adds the NFS_V4_SECURITY_LABEL entry which > > enables security label support for the NFSv4 client > > > > Signed-off-by: Steve Dickson > > --- > > fs/nfs/Kconfig | 19 +++++++++++++++++++ > > 1 file changed, 19 insertions(+) > > > > diff --git a/fs/nfs/Kconfig b/fs/nfs/Kconfig > > index 79c500e..771831d3 100644 > > --- a/fs/nfs/Kconfig > > +++ b/fs/nfs/Kconfig > > @@ -107,6 +107,7 @@ config NFS_V4_1 > > config NFS_V4_2 > > bool "NFS client support for NFSv4.2" > > depends on NFS_V4_1 > > + select NFS_V4_SECURITY_LABEL > > So this will force it on... > > > help > > This option enables support for minor version 1 of the NFSv4 protocol > > in the kernel's NFS client. > > @@ -140,6 +141,24 @@ config NFS_V4_1_IMPLEMENTATION_ID_DOMAIN > > If the NFS client is unchanged from the upstream kernel, this > > option should be set to the default "kernel.org". > > > > +config NFS_V4_SECURITY_LABEL > > + bool "Provide Security Label support for NFSv4 client" > > + depends on NFS_V4 && SECURITY > > Even if SECURITY is not set? > > Why are you forcing this on with a select? select is dangerous.. Eric is right. In any case, we already agreed that we don't need _both_ a NFSv4.2 and a NFSv4 security label switch. Please just get rid of NFS_V4_SECURITY_LABEL. -- Trond Myklebust Linux NFS client maintainer NetApp Trond.Myklebust@netapp.com www.netapp.com