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)
committerSteve French <stfrench@microsoft.com>
Sat, 23 Mar 2019 03:36:54 +0000 (22:36 -0500)
commite71ab2aa06f731a944993120b0eef1556c63b81c
tree58ad2f5f9c30a629f5f9cc67c9a9081eddc65063
parent85f9987b236cf46e06ffdb5c225cf1f3c0acb789
cifs: allow guest mounts to work for smb3.11

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>
fs/cifs/smb2pdu.c