Skip to content

Commit 8fe0c2c

Browse files
committed
cifs: print warning mounting with vers=1.0
We really, really don't want people using insecure dialects unless they realize what they are doing ... Add mount warning if mounting with vers=1.0 (older SMB1/CIFS dialect) instead of the default (SMB2.1 or later, typically SMB3.1.1). Signed-off-by: Steve French <[email protected]> Acked-by: Ronnie Sahlberg <[email protected]> Acked-by: Pavel Shilovsky <[email protected]>
1 parent cf5371a commit 8fe0c2c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/cifs/connect.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,6 +1471,9 @@ cifs_parse_smb_version(char *value, struct smb_vol *vol, bool is_smb3)
14711471
cifs_dbg(VFS, "vers=1.0 (cifs) not permitted when mounting with smb3\n");
14721472
return 1;
14731473
}
1474+
cifs_dbg(VFS, "Use of the less secure dialect vers=1.0 "
1475+
"is not recommended unless required for "
1476+
"access to very old servers\n");
14741477
vol->ops = &smb1_operations;
14751478
vol->vals = &smb1_values;
14761479
break;

0 commit comments

Comments
 (0)