]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SMB3 mounts fail with access denied to some servers
authorSteve French <smfrench@gmail.com>
Tue, 4 Dec 2012 22:56:37 +0000 (16:56 -0600)
committerSteve French <smfrench@gmail.com>
Wed, 5 Dec 2012 19:27:31 +0000 (13:27 -0600)
commit52c0f4ad8ed462d81f1d37f56a74a71dc0c9bf0f
tree6f3b90e75ceb1ad41d2e6ea4996ada3d6ab6f304
parent176c9b3939d22bb1177eb15010e600bc59a1b0b5
SMB3 mounts fail with access denied to some servers

We were checking incorrectly if signatures were required to be sent,
so were always sending signatures after the initial session establishment.
For SMB3 mounts (vers=3.0) this was a problem because we were putting
SMB2 signatures in SMB3 requests which would cause access denied
on mount (the tree connection would fail).

This might also be worth considering for stable (for 3.7), as the
error message on mount (access denied) is confusing to users and
there is no workaround if the server is configured to only
support smb3.0. I am ok either way.

CC: stable <stable@kernel.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/smb2pdu.c