diff options
author | Steve French <stfrench@microsoft.com> | 2021-02-02 00:03:58 -0600 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-02-15 10:33:34 -0600 |
commit | 6dffa4c22000595343fd676fd146a1318aab4073 (patch) | |
tree | 1eed58797a5c8cbd9db0b952e2ec0992ddb63959 /fs/cifs/fs_context.c | |
parent | f40ddce88593482919761f74910f42f4b84c004b (diff) | |
download | linux-rpi-6dffa4c22000595343fd676fd146a1318aab4073.tar.gz linux-rpi-6dffa4c22000595343fd676fd146a1318aab4073.tar.bz2 linux-rpi-6dffa4c22000595343fd676fd146a1318aab4073.zip |
smb3: negotiate current dialect (SMB3.1.1) when version 3 or greater requested
SMB3.1.1 is the newest, and preferred dialect, and is included in
the requested dialect list by default (ie if no vers= is specified
on mount) but it should also be requested if SMB3 or later is requested
(vers=3 instead of a specific dialect: vers=2.1, vers=3.02 or vers=3.0).
Currently specifying "vers=3" only requests smb3.0 and smb3.02 but this
patch fixes it to also request smb3.1.1 dialect, as it is the newest
and most secure dialect and is a "version 3 or later" dialect (the intent
of "vers=3").
Signed-off-by: Steve French <stfrench@microsoft.com>
Suggested-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/fs_context.c')
-rw-r--r-- | fs/cifs/fs_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/fs_context.c b/fs/cifs/fs_context.c index 12a5da0230b5..7d04f2255624 100644 --- a/fs/cifs/fs_context.c +++ b/fs/cifs/fs_context.c @@ -397,7 +397,7 @@ cifs_parse_smb_version(char *value, struct smb3_fs_context *ctx, bool is_smb3) ctx->vals = &smb3any_values; break; case Smb_default: - ctx->ops = &smb30_operations; /* currently identical with 3.0 */ + ctx->ops = &smb30_operations; ctx->vals = &smbdefault_values; break; default: |