Blame view

fs/cifs/Kconfig 8.61 KB
ec8f24b7f   Thomas Gleixner   treewide: Add SPD...
1
  # SPDX-License-Identifier: GPL-2.0-only
bb26b963d   Alexey Dobriyan   fs/Kconfig: move ...
2
  config CIFS
2a38e1205   Steve French   [SMB3] Remove ifd...
3
  	tristate "SMB3 and CIFS support (advanced network filesystem)"
bb26b963d   Alexey Dobriyan   fs/Kconfig: move ...
4
5
  	depends on INET
  	select NLS
d2b915210   Shirish Pargaonkar   NTLM auth and sig...
6
  	select CRYPTO
f855f6cbe   Jeff Layton   cifs: make CIFS d...
7
  	select CRYPTO_MD4
d2b915210   Shirish Pargaonkar   NTLM auth and sig...
8
  	select CRYPTO_MD5
5b454a645   Benjamin Gilbert   cifs: Select all ...
9
  	select CRYPTO_SHA256
5890184d2   Stefan Metzmacher   fs/cifs: require ...
10
  	select CRYPTO_SHA512
5b454a645   Benjamin Gilbert   cifs: Select all ...
11
  	select CRYPTO_CMAC
362d31297   Steve French   [CIFS] fs/cifs/Kc...
12
  	select CRYPTO_HMAC
97a5fee2b   Ard Biesheuvel   fs: cifs: switch ...
13
  	select CRYPTO_LIB_ARC4
5b454a645   Benjamin Gilbert   cifs: Select all ...
14
15
  	select CRYPTO_AEAD2
  	select CRYPTO_CCM
5fc3681fa   Aurelien Aptel   cifs: add missing...
16
  	select CRYPTO_GCM
5f0b23eeb   Suresh Jayaraman   cifs: make CIFS d...
17
  	select CRYPTO_ECB
5b454a645   Benjamin Gilbert   cifs: Select all ...
18
  	select CRYPTO_AES
9a394d120   Ard Biesheuvel   fs: cifs: move fr...
19
  	select CRYPTO_LIB_DES
e7a1a2df4   Steve French   CIFS: Fix module ...
20
  	select KEYS
bb26b963d   Alexey Dobriyan   fs/Kconfig: move ...
21
  	help
2a38e1205   Steve French   [SMB3] Remove ifd...
22
  	  This is the client VFS module for the SMB3 family of NAS protocols,
0fdfef9aa   Steve French   smb3: simplify co...
23
24
  	  (including support for the most recent, most secure dialect SMB3.1.1)
  	  as well as for earlier dialects such as SMB2.1, SMB2 and the older
2a38e1205   Steve French   [SMB3] Remove ifd...
25
26
27
  	  Common Internet File System (CIFS) protocol.  CIFS was the successor
  	  to the original dialect, the Server Message Block (SMB) protocol, the
  	  native file sharing mechanism for most early PC operating systems.
0fdfef9aa   Steve French   smb3: simplify co...
28
29
30
  	  The SMB3 protocol is supported by most modern operating systems
  	  and NAS appliances (e.g. Samba, Windows 10, Windows Server 2016,
  	  MacOS) and even in the cloud (e.g. Microsoft Azure).
2a38e1205   Steve French   [SMB3] Remove ifd...
31
32
  	  The older CIFS protocol was included in Windows NT4, 2000 and XP (and
  	  later) as well by Samba (which provides excellent CIFS and SMB3
0fdfef9aa   Steve French   smb3: simplify co...
33
34
35
36
  	  server support for Linux and many other operating systems). Use of
  	  dialects older than SMB2.1 is often discouraged on public networks.
  	  This module also provides limited support for OS/2 and Windows ME
  	  and similar very old servers.
bb26b963d   Alexey Dobriyan   fs/Kconfig: move ...
37

0fdfef9aa   Steve French   smb3: simplify co...
38
  	  This module provides an advanced network file system client
2a38e1205   Steve French   [SMB3] Remove ifd...
39
  	  for mounting to SMB3 (and CIFS) compliant servers.  It includes
bb26b963d   Alexey Dobriyan   fs/Kconfig: move ...
40
  	  support for DFS (hierarchical name space), secure per-user
0fdfef9aa   Steve French   smb3: simplify co...
41
42
43
  	  session establishment via Kerberos or NTLM or NTLMv2, RDMA
  	  (smbdirect), advanced security features, per-share encryption,
  	  directory leases, safe distributed caching (oplock), optional packet
bb26b963d   Alexey Dobriyan   fs/Kconfig: move ...
44
  	  signing, Unicode and other internationalization improvements.
2a38e1205   Steve French   [SMB3] Remove ifd...
45
46
47
48
49
50
51
  
  	  In general, the default dialects, SMB3 and later, enable better
  	  performance, security and features, than would be possible with CIFS.
  	  Note that when mounting to Samba, due to the CIFS POSIX extensions,
  	  CIFS mounts can provide slightly better POSIX compatibility
  	  than SMB3 mounts. SMB2/SMB3 mount options are also
  	  slightly simpler (compared to CIFS) due to protocol improvements.
0fdfef9aa   Steve French   smb3: simplify co...
52
  	  If you need to mount to Samba, Azure, Macs or Windows from this machine, say Y.
bb26b963d   Alexey Dobriyan   fs/Kconfig: move ...
53

bb26b963d   Alexey Dobriyan   fs/Kconfig: move ...
54
55
  config CIFS_STATS2
  	bool "Extended statistics"
fcabb8929   Steve French   cifs: simple stat...
56
  	depends on CIFS
bb26b963d   Alexey Dobriyan   fs/Kconfig: move ...
57
58
59
60
61
62
63
64
65
66
  	help
  	  Enabling this option will allow more detailed statistics on SMB
  	  request timing to be displayed in /proc/fs/cifs/DebugData and also
  	  allow optional logging of slow responses to dmesg (depending on the
  	  value of /proc/fs/cifs/cifsFYI, see fs/cifs/README for more details).
  	  These additional statistics may have a minor effect on performance
  	  and memory utilization.
  
  	  Unless you are a developer or are doing network performance analysis
  	  or tuning, say N.
7420451f6   Steve French   cifs: allow disab...
67
68
69
70
71
72
73
74
75
76
77
78
79
80
  config CIFS_ALLOW_INSECURE_LEGACY
  	bool "Support legacy servers which use less secure dialects"
  	depends on CIFS
  	default y
  	help
  	  Modern dialects, SMB2.1 and later (including SMB3 and 3.1.1), have
  	  additional security features, including protection against
  	  man-in-the-middle attacks and stronger crypto hashes, so the use
  	  of legacy dialects (SMB1/CIFS and SMB2.0) is discouraged.
  
  	  Disabling this option prevents users from using vers=1.0 or vers=2.0
  	  on mounts with cifs.ko
  
  	  If unsure, say Y.
bb26b963d   Alexey Dobriyan   fs/Kconfig: move ...
81
82
  config CIFS_WEAK_PW_HASH
  	bool "Support legacy servers which use weaker LANMAN security"
7420451f6   Steve French   cifs: allow disab...
83
  	depends on CIFS && CIFS_ALLOW_INSECURE_LEGACY
bb26b963d   Alexey Dobriyan   fs/Kconfig: move ...
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
  	help
  	  Modern CIFS servers including Samba and most Windows versions
  	  (since 1997) support stronger NTLM (and even NTLMv2 and Kerberos)
  	  security mechanisms. These hash the password more securely
  	  than the mechanisms used in the older LANMAN version of the
  	  SMB protocol but LANMAN based authentication is needed to
  	  establish sessions with some old SMB servers.
  
  	  Enabling this option allows the cifs module to mount to older
  	  LANMAN based servers such as OS/2 and Windows 95, but such
  	  mounts may be less secure than mounts using NTLM or more recent
  	  security mechanisms if you are on a public network.  Unless you
  	  have a need to access old SMB servers (and are on a private
  	  network) you probably want to say N.  Even if this support
  	  is enabled in the kernel build, LANMAN authentication will not be
  	  used automatically. At runtime LANMAN mounts are disabled but
  	  can be set to required (or optional) either in
  	  /proc/fs/cifs (see fs/cifs/README for more detail) or via an
  	  option on the mount command. This support is disabled by
  	  default in order to reduce the possibility of a downgrade
  	  attack.
  
  	  If unsure, say N.
  
  config CIFS_UPCALL
1a4240f47   Wang Lei   DNS: Separate out...
109
  	bool "Kerberos/SPNEGO advanced session setup"
e7a1a2df4   Steve French   CIFS: Fix module ...
110
  	depends on CIFS
1a4240f47   Wang Lei   DNS: Separate out...
111
112
113
114
115
  	select DNS_RESOLVER
  	help
  	  Enables an upcall mechanism for CIFS which accesses userspace helper
  	  utilities to provide SPNEGO packaged (RFC 4178) Kerberos tickets
  	  which are needed to mount to certain secure servers (for which more
2a38e1205   Steve French   [SMB3] Remove ifd...
116
  	  secure Kerberos authentication is required). If unsure, say Y.
bb26b963d   Alexey Dobriyan   fs/Kconfig: move ...
117
118
  
  config CIFS_XATTR
50cfad780   Enrico Weigelt, metux IT consult   fs: cifs: Kconfig...
119
120
121
122
123
124
125
126
127
128
129
130
131
  	bool "CIFS extended attributes"
  	depends on CIFS
  	help
  	  Extended attributes are name:value pairs associated with inodes by
  	  the kernel or by users (see the attr(5) manual page for details).
  	  CIFS maps the name of extended attributes beginning with the user
  	  namespace prefix to SMB/CIFS EAs.  EAs are stored on Windows
  	  servers without the user namespace prefix, but their names are
  	  seen by Linux cifs clients prefaced by the user namespace prefix.
  	  The system namespace (used by some filesystems to store ACLs) is
  	  not supported at this time.
  
  	  If unsure, say Y.
bb26b963d   Alexey Dobriyan   fs/Kconfig: move ...
132
133
  
  config CIFS_POSIX
50cfad780   Enrico Weigelt, metux IT consult   fs: cifs: Kconfig...
134
135
136
137
  	bool "CIFS POSIX Extensions"
  	depends on CIFS && CIFS_ALLOW_INSECURE_LEGACY && CIFS_XATTR
  	help
  	  Enabling this option will cause the cifs client to attempt to
bb26b963d   Alexey Dobriyan   fs/Kconfig: move ...
138
139
140
141
142
143
  	  negotiate a newer dialect with servers, such as Samba 3.0.5
  	  or later, that optionally can handle more POSIX like (rather
  	  than Windows like) file behavior.  It also enables
  	  support for POSIX ACLs (getfacl and setfacl) to servers
  	  (such as Samba 3.10 and later) which can negotiate
  	  CIFS POSIX ACL support.  If unsure, say N.
471b1f987   Joe Perches   cifs: Add CONFIG_...
144
145
146
147
148
  config CIFS_DEBUG
  	bool "Enable CIFS debugging routines"
  	default y
  	depends on CIFS
  	help
50cfad780   Enrico Weigelt, metux IT consult   fs: cifs: Kconfig...
149
150
151
  	  Enabling this option adds helpful debugging messages to
  	  the cifs code which increases the size of the cifs module.
  	  If unsure, say Y.
bb26b963d   Alexey Dobriyan   fs/Kconfig: move ...
152
153
  config CIFS_DEBUG2
  	bool "Enable additional CIFS debugging routines"
471b1f987   Joe Perches   cifs: Add CONFIG_...
154
  	depends on CIFS_DEBUG
bb26b963d   Alexey Dobriyan   fs/Kconfig: move ...
155
  	help
50cfad780   Enrico Weigelt, metux IT consult   fs: cifs: Kconfig...
156
157
158
159
160
161
  	  Enabling this option adds a few more debugging routines
  	  to the cifs code which slightly increases the size of
  	  the cifs module and can cause additional logging of debug
  	  messages in some error paths, slowing performance. This
  	  option can be turned off unless you are debugging
  	  cifs problems.  If unsure, say N.
bb26b963d   Alexey Dobriyan   fs/Kconfig: move ...
162

d38de3c61   Aurélien Aptel   CIFS: add CONFIG_...
163
164
  config CIFS_DEBUG_DUMP_KEYS
  	bool "Dump encryption keys for offline decryption (Unsafe)"
2a38e1205   Steve French   [SMB3] Remove ifd...
165
  	depends on CIFS_DEBUG
d38de3c61   Aurélien Aptel   CIFS: add CONFIG_...
166
  	help
50cfad780   Enrico Weigelt, metux IT consult   fs: cifs: Kconfig...
167
168
169
170
171
  	  Enabling this will dump the encryption and decryption keys
  	  used to communicate on an encrypted share connection on the
  	  console. This allows Wireshark to decrypt and dissect
  	  encrypted network captures. Enable this carefully.
  	  If unsure, say N.
d38de3c61   Aurélien Aptel   CIFS: add CONFIG_...
172

10e70afa7   Steve French   [CIFS] DFS no lon...
173
  config CIFS_DFS_UPCALL
50cfad780   Enrico Weigelt, metux IT consult   fs: cifs: Kconfig...
174
  	bool "DFS feature support"
e7a1a2df4   Steve French   CIFS: Fix module ...
175
  	depends on CIFS
50cfad780   Enrico Weigelt, metux IT consult   fs: cifs: Kconfig...
176
177
178
179
180
181
182
183
184
185
  	select DNS_RESOLVER
  	help
  	  Distributed File System (DFS) support is used to access shares
  	  transparently in an enterprise name space, even if the share
  	  moves to a different server.  This feature also enables
  	  an upcall mechanism for CIFS which contacts userspace helper
  	  utilities to provide server name resolution (host names to
  	  IP addresses) which is needed in order to reconnect to
  	  servers if their addresses change or for implicit mounts of
  	  DFS junction points. If unsure, say Y.
10e70afa7   Steve French   [CIFS] DFS no lon...
186

257208736   Shirish Pargaonkar   cifs: cleanup: Re...
187
  config CIFS_NFSD_EXPORT
50cfad780   Enrico Weigelt, metux IT consult   fs: cifs: Kconfig...
188
189
190
191
  	bool "Allow nfsd to export CIFS file system"
  	depends on CIFS && BROKEN
  	help
  	  Allows NFS server to export a CIFS mounted share (nfsd over cifs)
675f36fb1   Steve French   CIFS: Introduce S...
192

2b6ed8803   Long Li   CIFS: SMBD: Intro...
193
  config CIFS_SMB_DIRECT
e9630660b   Steve French   smb3: smbdirect n...
194
  	bool "SMB Direct support"
533d1daea   Arnd Bergmann   IB: Revert "remov...
195
  	depends on CIFS=m && INFINIBAND && INFINIBAND_ADDR_TRANS || CIFS=y && INFINIBAND=y && INFINIBAND_ADDR_TRANS=y
2b6ed8803   Long Li   CIFS: SMBD: Intro...
196
  	help
e9630660b   Steve French   smb3: smbdirect n...
197
  	  Enables SMB Direct support for SMB 3.0, 3.02 and 3.1.1.
2b6ed8803   Long Li   CIFS: SMBD: Intro...
198
  	  SMB Direct allows transferring SMB packets over RDMA. If unsure,
2bcb4fd6b   Steve French   smb3: smbdirect s...
199
  	  say Y.
2b6ed8803   Long Li   CIFS: SMBD: Intro...
200

1d4ab9077   Steve French   [CIFS] Fix indent...
201
  config CIFS_FSCACHE
50cfad780   Enrico Weigelt, metux IT consult   fs: cifs: Kconfig...
202
203
204
205
206
207
  	bool "Provide CIFS client caching support"
  	depends on CIFS=m && FSCACHE || CIFS=y && FSCACHE=y
  	help
  	  Makes CIFS FS-Cache capable. Say Y here if you want your CIFS data
  	  to be cached locally on disk through the general filesystem cache
  	  manager. If unsure, say N.
8eecd1c2e   Paulo Alcantara (SUSE)   cifs: Add support...
208
209
210
211
212
213
214
215
  
  config CIFS_ROOT
  	bool "SMB root file system (Experimental)"
  	depends on CIFS=y && IP_PNP
  	help
  	  Enables root file system support over SMB protocol.
  
  	  Most people say N here.