smb3: fix access denied on change notify request to some servers
authorSteve French <stfrench@microsoft.com>
Tue, 7 Jul 2020 23:08:46 +0000 (18:08 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 7 Jul 2020 23:24:39 +0000 (18:24 -0500)
commit4ef9b4f1a76ea2370fbfe20e80fef141ab92b65e
treefa7e9e2e5177412fe22a2bc4bbf41fd23c60ddc8
parentdcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258
smb3: fix access denied on change notify request to some servers

read permission, not just read attributes permission, is required
on the directory.

See MS-SMB2 (protocol specification) section 3.3.5.19.

Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org> # v5.6+
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/smb2ops.c