aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2017-07-08 18:30:41 -0400
committerSteve French <smfrench@gmail.com>2017-07-08 19:59:42 -0400
commiteef914a9eb5eb83e60eb498315a491cd1edc13a1 (patch)
tree45c8191c0a6d710c59b08cc06c8b084a2ae6874c
parent2a38e12053b760a8f5e85030eb89512660077c15 (diff)
[SMB3] Improve security, move default dialect to SMB3 from old CIFS
Due to recent publicity about security vulnerabilities in the much older CIFS dialect, move the default dialect to the widely accepted (and quite secure) SMB3.0 dialect from the old default of the CIFS dialect. We do not want to be encouraging use of less secure dialects, and both Microsoft and CERT now strongly recommend not using the older CIFS dialect (SMB Security Best Practices "recommends disabling SMBv1"). SMB3 is both secure and widely available: in Windows 8 and later, Samba and Macs. Users can still choose to explicitly mount with the less secure dialect (for old servers) by choosing "vers=1.0" on the cifs mount Signed-off-by: Steve French <smfrench@gmail.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
-rw-r--r--fs/cifs/connect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 6ab261cd0208..59647eb72c5f 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1272,9 +1272,9 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
1272 1272
1273 vol->actimeo = CIFS_DEF_ACTIMEO; 1273 vol->actimeo = CIFS_DEF_ACTIMEO;
1274 1274
1275 /* FIXME: add autonegotiation -- for now, SMB1 is default */ 1275 /* FIXME: add autonegotiation for SMB3 or later rather than just SMB3 */
1276 vol->ops = &smb1_operations; 1276 vol->ops = &smb30_operations; /* both secure and accepted widely */
1277 vol->vals = &smb1_values; 1277 vol->vals = &smb30_values;
1278 1278
1279 vol->echo_interval = SMB_ECHO_INTERVAL_DEFAULT; 1279 vol->echo_interval = SMB_ECHO_INTERVAL_DEFAULT;
1280 1280