WSL2-Linux-Kernel/fs/cifs
Steve French f92a720ee9 cifs: allow disabling less secure legacy dialects
To improve security it may be helpful to have additional ways to restrict the
ability to override the default dialects (SMB2.1, SMB3 and SMB3.02) on mount
with old dialects (CIFS/SMB1 and SMB2) since vers=1.0 (CIFS/SMB1) and vers=2.0
are weaker and less secure.

Add a module parameter "disable_legacy_dialects"
(/sys/module/cifs/parameters/disable_legacy_dialects) which can be set to
1 (or equivalently Y) to forbid use of vers=1.0 or vers=2.0 on mount.

Also cleans up a few build warnings about globals for various module parms.

Signed-off-by: Steve French <smfrench@gmail.com>
2018-05-30 16:06:18 -05:00
..
Kconfig
Makefile smb3: Add ftrace tracepoints for improved SMB3 debugging 2018-05-27 17:56:35 -05:00
asn1.c
cache.c
cifs_debug.c cifs: show the "w" bit for writeable /proc/fs/cifs/* files 2018-05-30 16:06:18 -05:00
cifs_debug.h
cifs_dfs_ref.c
cifs_fs_sb.h
cifs_ioctl.h
cifs_spnego.c
cifs_spnego.h
cifs_unicode.c
cifs_unicode.h
cifs_uniupr.h
cifsacl.c
cifsacl.h
cifsencrypt.c
cifsfs.c cifs: allow disabling less secure legacy dialects 2018-05-30 16:06:18 -05:00
cifsfs.h cifs: update internal module version number for cifs.ko to 2.12 2018-05-27 17:56:35 -05:00
cifsglob.h cifs: allow disabling less secure legacy dialects 2018-05-30 16:06:18 -05:00
cifspdu.h
cifsproto.h smb3: add additional ftrace entry points for entry/exit to cifs.ko 2018-05-30 16:06:18 -05:00
cifssmb.c
connect.c cifs: allow disabling less secure legacy dialects 2018-05-30 16:06:18 -05:00
dir.c
dns_resolve.c
dns_resolve.h
export.c
file.c
fscache.c
fscache.h
inode.c cifs: invalidate cache when we truncate a file 2018-05-30 16:06:18 -05:00
ioctl.c
link.c
misc.c cifs: update calc_size to take a server argument 2018-05-27 17:56:35 -05:00
netmisc.c cifs: update calc_size to take a server argument 2018-05-27 17:56:35 -05:00
nterr.c
nterr.h
ntlmssp.h
readdir.c cifs: update calc_size to take a server argument 2018-05-27 17:56:35 -05:00
rfc1002pdu.h
sess.c
smb1ops.c
smb2file.c
smb2glob.h
smb2inode.c
smb2maperror.c smb3: add additional ftrace entry points for entry/exit to cifs.ko 2018-05-30 16:06:18 -05:00
smb2misc.c cifs: update calc_size to take a server argument 2018-05-27 17:56:35 -05:00
smb2ops.c smb3: print tree id in debugdata in proc to be able to help logging 2018-05-30 16:06:18 -05:00
smb2pdu.c CIFS: Introduce offset for the 1st page in data transfer structures 2018-05-30 16:06:12 -05:00
smb2pdu.h
smb2proto.h cifs: add a new SMB2_close_flags function 2018-05-27 17:56:35 -05:00
smb2status.h
smb2transport.c
smbdirect.c
smbdirect.h
smbencrypt.c
smberr.h
smbfsctl.h
trace.c smb3: Add ftrace tracepoints for improved SMB3 debugging 2018-05-27 17:56:35 -05:00
trace.h smb3: add additional ftrace entry points for entry/exit to cifs.ko 2018-05-30 16:06:18 -05:00
transport.c
winucase.c
xattr.c