cifs: allow guest mounts to work for smb3.11
authorRonnie Sahlberg <lsahlber@redhat.com>
Thu, 21 Mar 2019 04:59:02 +0000 (14:59 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Mar 2019 05:14:40 +0000 (14:14 +0900)
commit14c52acaac86ec7fb99c3a1287227664cfc5eb54
tree218174e59c8369e3606e18f3325741a6b4db8af4
parent36d52f5bcd573dee4ed5527a1816f39d9d3f05d0
cifs: allow guest mounts to work for smb3.11

commit e71ab2aa06f731a944993120b0eef1556c63b81c upstream.

Fix Guest/Anonymous sessions so that they work with SMB 3.11.

The commit noted below tightened the conditions and forced signing for
the SMB2-TreeConnect commands as per MS-SMB2.
However, this should only apply to normal user sessions and not for
Guest/Anonumous sessions.

Fixes: 6188f28bf608 ("Tree connect for SMB3.1.1 must be signed for non-encrypted shares")

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/smb2pdu.c