Skip to content

Commit 4ef9b4f

Browse files
committed
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 <[email protected]> CC: Stable <[email protected]> # v5.6+ Reviewed-by: Pavel Shilovsky <[email protected]>
1 parent dcb7fd8 commit 4ef9b4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/cifs/smb2ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2148,7 +2148,7 @@ smb3_notify(const unsigned int xid, struct file *pfile,
21482148

21492149
tcon = cifs_sb_master_tcon(cifs_sb);
21502150
oparms.tcon = tcon;
2151-
oparms.desired_access = FILE_READ_ATTRIBUTES;
2151+
oparms.desired_access = FILE_READ_ATTRIBUTES | FILE_READ_DATA;
21522152
oparms.disposition = FILE_OPEN;
21532153
oparms.create_options = cifs_create_options(cifs_sb, 0);
21542154
oparms.fid = &fid;

0 commit comments

Comments
 (0)