diff options
author | Steve French <stfrench@microsoft.com> | 2020-10-17 11:54:27 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-10-20 10:15:56 +0300 |
commit | acf96fef46f271642b90aa658ba49e33ae34ddf0 (patch) | |
tree | 909ae2dba297852bf40186848622a6a91d86c2bf /fs/cifs/cifsacl.h | |
parent | 0bd294b55a5de442370c29fa53bab17aef3ff318 (diff) | |
download | linux-acf96fef46f271642b90aa658ba49e33ae34ddf0.tar.xz |
smb3.1.1: do not fail if no encryption required but server doesn't support it
There are cases where the server can return a cipher type of 0 and
it not be an error. For example server supported no encryption types
(e.g. server completely disabled encryption), or the server and
client didn't support any encryption types in common (e.g. if a
server only supported AES256_CCM). In those cases encryption would
not be supported, but that can be ok if the client did not require
encryption on mount and it should not return an error.
In the case in which mount requested encryption ("seal" on mount)
then checks later on during tree connection will return the proper
rc, but if seal was not requested by client, since server is allowed
to return 0 to indicate no supported cipher, we should not fail mount.
Reported-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsacl.h')
0 files changed, 0 insertions, 0 deletions