[PATCH 07/14] KConfig: Add KConfig entries for Labeled NFS

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David P. Quigley
Date: Wednesday, November 26, 2008 - 2:03 pm

This patch adds two entries into the fs/KConfig file. The first entry
NFS_V4_SECURITY_LABEL enables security label support for the NFSv4 client while
the second entry NFSD_V4_SECURITY_LABEL enables security labeling support on
the server side.

Signed-off-by: Matthew N. Dodd <Matthew.Dodd@sparta.com>
Signed-off-by: David P. Quigley <dpquigl@tycho.nsa.gov>
---
 fs/Kconfig |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/fs/Kconfig b/fs/Kconfig
index 522469a..db76fcb 100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -1216,6 +1216,22 @@ config NFS_V4
 
 	  If unsure, say N.
 
+config NFS_V4_SECURITY_LABEL
+	bool "Provide Security Label support for NFSv4 client"
+	depends on NFS_V4 && SECURITY
+	help
+	
+	Say Y here if you want enable fine-grained security label attribute
+	support for NFS version 4.  Security labels allow security modules like
+	SELinux and Smack to label files to facilitate enforcement of their policies.
+	Without this an NFSv4 mount will have the same label on each file.
+
+	If you do not wish to enable fine-grained security labels SELinux or
+	Smack policies on NFSv4 files, say N.  
+
+
+	  If unsure, say N.
+
 config ROOT_NFS
 	bool "Root file system on NFS"
 	depends on NFS_FS=y && IP_PNP
@@ -1308,6 +1324,20 @@ config NFSD_V4
 
 	  If unsure, say N.
 
+config NFSD_V4_SECURITY_LABEL
+	bool "Provide Security Label support for NFSv4 server"
+	depends on NFSD_V4 && SECURITY
+	help
+
+	Say Y here if you want enable fine-grained security label attribute
+	support for NFS version 4.  Security labels allow security modules like
+	SELinux and Smack to label files to facilitate enforcement of their policies.
+	Without this an NFSv4 mount will have the same label on each file.
+
+	If you do not wish to enable fine-grained security labels SELinux or
+	Smack policies on NFSv4 files, say N.  
+
+
 config LOCKD
 	tristate
 
-- 
1.5.5.1

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 07/14] KConfig: Add KConfig entries for Labeled NFS, David P. Quigley, (Wed Nov 26, 2:03 pm)
[PATCH 4/8] badpage: vm_normal_page use print_bad_pte, Hugh Dickins, (Sun Nov 30, 5:43 pm)
[PATCH 5/8] badpage: zap print_bad_pte on swap and file, Hugh Dickins, (Sun Nov 30, 5:44 pm)
[PATCH 6/8] badpage: remove vma from page_remove_rmap, Hugh Dickins, (Sun Nov 30, 5:45 pm)
Re: [PATCH 8/8] badpage: KERN_ALERT BUG instead of KERN_EMERG, Christoph Lameter, (Mon Dec 1, 7:40 am)
Re: [PATCH 1/8] badpage: simplify page_alloc flag check+clear, Christoph Lameter, (Mon Dec 1, 7:47 am)
Re: [PATCH 2/8] badpage: keep any bad page out of circulation, Christoph Lameter, (Mon Dec 1, 7:49 am)
Re: [PATCH 1/8] badpage: simplify page_alloc flag check+clear, Christoph Lameter, (Mon Dec 1, 7:21 pm)
Re: [PATCH 1/8] badpage: simplify page_alloc flag check+clear, Christoph Lameter, (Tue Dec 2, 6:12 am)