cifs: allow guest mounts to work for smb3.11
commit3bff3aabd58634b437a1dd7a7c099c4f270abf89
authorRonnie Sahlberg <lsahlber@redhat.com>
Thu, 21 Mar 2019 04:59:02 +0000 (21 14:59 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Mar 2019 05:17:55 +0000 (27 14:17 +0900)
tree432727e972b333f944c65164372b5dd5813a21db
parent8dfb1e702caa46124669964fac5ebdab040137f3
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