Directory Files
.. 78
File Size
Kconfig 7.9 kB
Makefile 1.1 kB
asn1.c 1.5 kB
cached_dir.c 9.5 kB
cached_dir.h 1.9 kB
cifs.mod.c 0 B
cifs_debug.c 31 kB
cifs_debug.h 4.4 kB
cifs_dfs_ref.c 9.8 kB
cifs_fs_sb.h 3.5 kB
cifs_ioctl.h 3.4 kB
cifs_spnego.c 5.8 kB
cifs_spnego.h 927 B
cifs_spnego_negtokeninit.asn1 698 B
cifs_spnego_negtokeninit.asn1.c 0 B
cifs_spnego_negtokeninit.asn1.h 0 B
cifs_swn.c 17 kB
cifs_swn.h 1.5 kB
cifs_unicode.c 16 kB
cifs_unicode.h 9.8 kB
cifs_uniupr.h 12 kB
cifsacl.c 46 kB
cifsacl.h 6.3 kB
cifsencrypt.c 21 kB
cifsfs.c 50 kB
cifsfs.h 6.5 kB
cifsglob.h 73 kB
cifspdu.h 85 kB
cifsproto.h 30 kB
cifsroot.c 2.1 kB
cifssmb.c 176 kB
connect.c 129 kB
dfs_cache.c 41 kB
dfs_cache.h 2.9 kB
dir.c 22 kB
dns_resolve.c 2.3 kB
dns_resolve.h 472 B
export.c 1.7 kB
file.c 137 kB
fs_context.c 48 kB
fs_context.h 7.3 kB
fscache.c 6.4 kB
fscache.h 4.4 kB
inode.c 82 kB
ioctl.c 13 kB
link.c 18 kB
misc.c 36 kB
netlink.c 2.5 kB
netlink.h 326 B
netmisc.c 40 kB
nterr.c 34 kB
nterr.h 30 kB
ntlmssp.h 6.1 kB
readdir.c 34 kB
rfc1002pdu.h 2.1 kB
sess.c 50 kB
smb1ops.c 36 kB
smb2file.c 7.5 kB
smb2glob.h 1.2 kB
smb2inode.c 21 kB
smb2maperror.c 130 kB
smb2misc.c 27 kB
smb2ops.c 164 kB
smb2pdu.c 160 kB
smb2pdu.h 10 kB
smb2proto.h 14 kB
smb2status.h 108 kB
smb2transport.c 24 kB
smbdirect.c 73 kB
smbdirect.h 8.4 kB
smbencrypt.c 2.2 kB
smberr.h 6.9 kB
trace.c 195 B
trace.h 28 kB
transport.c 49 kB
unc.c 1.5 kB
winucase.c 37 kB
xattr.c 15 kB

Linux v6.0-rc7 - cifs

# SPDX-License-Identifier: GPL-2.0-only
config CIFS
	tristate "SMB3 and CIFS support (advanced network filesystem)"
	depends on INET
	select NLS
	select CRYPTO
	select CRYPTO_MD5
	select CRYPTO_SHA256
	select CRYPTO_SHA512
	select CRYPTO_AEAD2
	select CRYPTO_CCM
	select CRYPTO_GCM
	select CRYPTO_ECB
	select CRYPTO_AES
	select KEYS
	select ASN1
	  This is the client VFS module for the SMB3 family of NAS protocols,
	  (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
	  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.

	  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).
	  The older CIFS protocol was included in Windows NT4, 2000 and XP (and
	  later) as well by Samba (which provides excellent CIFS and SMB3
	  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.

	  This module provides an advanced network file system client
	  for mounting to SMB3 (and CIFS) compliant servers.  It includes
	  support for DFS (hierarchical name space), secure per-user
	  session establishment via Kerberos or NTLM or NTLMv2, RDMA
	  (smbdirect), advanced security features, per-share encryption,
	  directory leases, safe distributed caching (oplock), optional packet
	  signing, Unicode and other internationalization improvements.

	  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.

	  If you need to mount to Samba, Azure, Macs or Windows from this machine, say Y.

config CIFS_STATS2
	bool "Extended statistics"
	depends on CIFS
	default y
	  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 Documentation/admin-guide/cifs/usage.rst
	  for more details. These additional statistics may have a minor effect
	  on performance and memory utilization.

	  If unsure, say Y.

	bool "Support legacy servers which use less secure dialects"
	depends on CIFS
	default y
	  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.

	bool "Kerberos/SPNEGO advanced session setup"
	depends on CIFS
	  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
	  secure Kerberos authentication is required). If unsure, say Y.

	bool "CIFS extended attributes"
	depends on CIFS
	  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.

	bool "CIFS POSIX Extensions"
	  Enabling this option will cause the cifs client to attempt to
	  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.

	bool "Enable CIFS debugging routines"
	default y
	depends on CIFS
	  Enabling this option adds helpful debugging messages to
	  the cifs code which increases the size of the cifs module.
	  If unsure, say Y.

config CIFS_DEBUG2
	bool "Enable additional CIFS debugging routines"
	depends on CIFS_DEBUG
	  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.

	bool "Dump encryption keys for offline decryption (Unsafe)"
	depends on CIFS_DEBUG
	  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.

	bool "DFS feature support"
	depends on CIFS
	  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.

	bool "SWN feature support"
	depends on CIFS
	  The Service Witness Protocol (SWN) is used to get notifications
	  from a highly available server of resource state changes. This
	  feature enables an upcall mechanism for CIFS which contacts a
	  userspace daemon to establish the DCE/RPC connection to retrieve
	  the cluster available interfaces and resource change notifications.
	  If unsure, say Y.

	bool "Allow nfsd to export CIFS file system"
	depends on CIFS && BROKEN
	  Allows NFS server to export a CIFS mounted share (nfsd over cifs)

	bool "SMB Direct support"
	  Enables SMB Direct support for SMB 3.0, 3.02 and 3.1.1.
	  SMB Direct allows transferring SMB packets over RDMA. If unsure,
	  say Y.

	bool "Provide CIFS client caching support"
	depends on CIFS=m && FSCACHE || CIFS=y && FSCACHE=y
	  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.

config CIFS_ROOT
	bool "SMB root file system (Experimental)"
	depends on CIFS=y && IP_PNP
	  Enables root file system support over SMB protocol.

	  Most people say N here.