xref: /linux/fs/nfsd/Kconfig (revision 9cf514ccfacb301f3b1b4509a8ce25dffad55880)
1e2b329e2SAlexey Dobriyanconfig NFSD
2e2b329e2SAlexey Dobriyan	tristate "NFS server support"
3e2b329e2SAlexey Dobriyan	depends on INET
468666561SManish Katiyar	depends on FILE_LOCKING
5e2b329e2SAlexey Dobriyan	select LOCKD
6e2b329e2SAlexey Dobriyan	select SUNRPC
7e2b329e2SAlexey Dobriyan	select EXPORTFS
8e2b329e2SAlexey Dobriyan	select NFS_ACL_SUPPORT if NFSD_V2_ACL
9e2b329e2SAlexey Dobriyan	help
10e2b329e2SAlexey Dobriyan	  Choose Y here if you want to allow other computers to access
11e2b329e2SAlexey Dobriyan	  files residing on this system using Sun's Network File System
12e2b329e2SAlexey Dobriyan	  protocol.  To compile the NFS server support as a module,
13e2b329e2SAlexey Dobriyan	  choose M here: the module will be called nfsd.
14e2b329e2SAlexey Dobriyan
15e2b329e2SAlexey Dobriyan	  You may choose to use a user-space NFS server instead, in which
16e2b329e2SAlexey Dobriyan	  case you can choose N here.
17e2b329e2SAlexey Dobriyan
18e2b329e2SAlexey Dobriyan	  To export local file systems using NFS, you also need to install
19e2b329e2SAlexey Dobriyan	  user space programs which can be found in the Linux nfs-utils
20e2b329e2SAlexey Dobriyan	  package, available from http://linux-nfs.org/.  More detail about
21e2b329e2SAlexey Dobriyan	  the Linux NFS server implementation is available via the
22e2b329e2SAlexey Dobriyan	  exports(5) man page.
23e2b329e2SAlexey Dobriyan
24e2b329e2SAlexey Dobriyan	  Below you can choose which versions of the NFS protocol are
25e2b329e2SAlexey Dobriyan	  available to clients mounting the NFS server on this system.
26e2b329e2SAlexey Dobriyan	  Support for NFS version 2 (RFC 1094) is always available when
27e2b329e2SAlexey Dobriyan	  CONFIG_NFSD is selected.
28e2b329e2SAlexey Dobriyan
29e2b329e2SAlexey Dobriyan	  If unsure, say N.
30e2b329e2SAlexey Dobriyan
31e2b329e2SAlexey Dobriyanconfig NFSD_V2_ACL
32e2b329e2SAlexey Dobriyan	bool
33e2b329e2SAlexey Dobriyan	depends on NFSD
34e2b329e2SAlexey Dobriyan
35e2b329e2SAlexey Dobriyanconfig NFSD_V3
36e2b329e2SAlexey Dobriyan	bool "NFS server support for NFS version 3"
37e2b329e2SAlexey Dobriyan	depends on NFSD
38e2b329e2SAlexey Dobriyan	help
39e2b329e2SAlexey Dobriyan	  This option enables support in your system's NFS server for
40e2b329e2SAlexey Dobriyan	  version 3 of the NFS protocol (RFC 1813).
41e2b329e2SAlexey Dobriyan
42e2b329e2SAlexey Dobriyan	  If unsure, say Y.
43e2b329e2SAlexey Dobriyan
44e2b329e2SAlexey Dobriyanconfig NFSD_V3_ACL
45e2b329e2SAlexey Dobriyan	bool "NFS server support for the NFSv3 ACL protocol extension"
46e2b329e2SAlexey Dobriyan	depends on NFSD_V3
47e2b329e2SAlexey Dobriyan	select NFSD_V2_ACL
48e2b329e2SAlexey Dobriyan	help
49e2b329e2SAlexey Dobriyan	  Solaris NFS servers support an auxiliary NFSv3 ACL protocol that
50e2b329e2SAlexey Dobriyan	  never became an official part of the NFS version 3 protocol.
51e2b329e2SAlexey Dobriyan	  This protocol extension allows applications on NFS clients to
52e2b329e2SAlexey Dobriyan	  manipulate POSIX Access Control Lists on files residing on NFS
53e2b329e2SAlexey Dobriyan	  servers.  NFS servers enforce POSIX ACLs on local files whether
54e2b329e2SAlexey Dobriyan	  this protocol is available or not.
55e2b329e2SAlexey Dobriyan
56e2b329e2SAlexey Dobriyan	  This option enables support in your system's NFS server for the
57e2b329e2SAlexey Dobriyan	  NFSv3 ACL protocol extension allowing NFS clients to manipulate
58e2b329e2SAlexey Dobriyan	  POSIX ACLs on files exported by your system's NFS server.  NFS
59e2b329e2SAlexey Dobriyan	  clients which support the Solaris NFSv3 ACL protocol can then
60e2b329e2SAlexey Dobriyan	  access and modify ACLs on your NFS server.
61e2b329e2SAlexey Dobriyan
62e2b329e2SAlexey Dobriyan	  To store ACLs on your NFS server, you also need to enable ACL-
63e2b329e2SAlexey Dobriyan	  related CONFIG options for your local file systems of choice.
64e2b329e2SAlexey Dobriyan
65e2b329e2SAlexey Dobriyan	  If unsure, say N.
66e2b329e2SAlexey Dobriyan
67e2b329e2SAlexey Dobriyanconfig NFSD_V4
68f987c902SKees Cook	bool "NFS server support for NFS version 4"
69f987c902SKees Cook	depends on NFSD && PROC_FS
70e2b329e2SAlexey Dobriyan	select NFSD_V3
71e2b329e2SAlexey Dobriyan	select FS_POSIX_ACL
72827e3457STrond Myklebust	select SUNRPC_GSS
73be1f4084SRandy Dunlap	select CRYPTO
74f7790029SJeff Layton	select GRACE_PERIOD
75e2b329e2SAlexey Dobriyan	help
76e2b329e2SAlexey Dobriyan	  This option enables support in your system's NFS server for
77e2b329e2SAlexey Dobriyan	  version 4 of the NFS protocol (RFC 3530).
78e2b329e2SAlexey Dobriyan
79e2b329e2SAlexey Dobriyan	  To export files using NFSv4, you need to install additional user
80e2b329e2SAlexey Dobriyan	  space programs which can be found in the Linux nfs-utils package,
81e2b329e2SAlexey Dobriyan	  available from http://linux-nfs.org/.
82e2b329e2SAlexey Dobriyan
83e2b329e2SAlexey Dobriyan	  If unsure, say N.
8465178db4SBryan Schumaker
85*9cf514ccSChristoph Hellwigconfig NFSD_PNFS
86*9cf514ccSChristoph Hellwig	bool "NFSv4.1 server support for Parallel NFS (pNFS)"
87*9cf514ccSChristoph Hellwig	depends on NFSD_V4
88*9cf514ccSChristoph Hellwig	help
89*9cf514ccSChristoph Hellwig	  This option enables support for the parallel NFS features of the
90*9cf514ccSChristoph Hellwig	  minor version 1 of the NFSv4 protocol (RFC5661) in the kernel's NFS
91*9cf514ccSChristoph Hellwig	  server.
92*9cf514ccSChristoph Hellwig
93*9cf514ccSChristoph Hellwig	  If unsure, say N.
94*9cf514ccSChristoph Hellwig
9518032ca0SDavid Quigleyconfig NFSD_V4_SECURITY_LABEL
9618032ca0SDavid Quigley	bool "Provide Security Label support for NFSv4 server"
9718032ca0SDavid Quigley	depends on NFSD_V4 && SECURITY
9818032ca0SDavid Quigley	help
9918032ca0SDavid Quigley
10018032ca0SDavid Quigley	Say Y here if you want enable fine-grained security label attribute
10118032ca0SDavid Quigley	support for NFS version 4.  Security labels allow security modules like
10218032ca0SDavid Quigley	SELinux and Smack to label files to facilitate enforcement of their policies.
10318032ca0SDavid Quigley	Without this an NFSv4 mount will have the same label on each file.
10418032ca0SDavid Quigley
10518032ca0SDavid Quigley	If you do not wish to enable fine-grained security labels SELinux or
10618032ca0SDavid Quigley	Smack policies on NFSv4 files, say N.
10718032ca0SDavid Quigley
10865178db4SBryan Schumakerconfig NFSD_FAULT_INJECTION
10965178db4SBryan Schumaker	bool "NFS server manual fault injection"
11065178db4SBryan Schumaker	depends on NFSD_V4 && DEBUG_KERNEL
11165178db4SBryan Schumaker	help
11265178db4SBryan Schumaker	  This option enables support for manually injecting faults
11365178db4SBryan Schumaker	  into the NFS server.  This is intended to be used for
11465178db4SBryan Schumaker	  testing error recovery on the NFS client.
11565178db4SBryan Schumaker
11665178db4SBryan Schumaker	  If unsure, say N.
117