mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
cifs: update desired access while requesting for directory lease
commit b6d44d4231 upstream.
We read and cache directory contents when we get directory
lease, so we should ask for read permission to read contents
of directory.
Signed-off-by: Bharath SM <bharathsm@microsoft.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
db5d5673ab
commit
9c8fc05bd4
@@ -218,7 +218,7 @@ int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon,
|
|||||||
.tcon = tcon,
|
.tcon = tcon,
|
||||||
.path = path,
|
.path = path,
|
||||||
.create_options = cifs_create_options(cifs_sb, CREATE_NOT_FILE),
|
.create_options = cifs_create_options(cifs_sb, CREATE_NOT_FILE),
|
||||||
.desired_access = FILE_READ_ATTRIBUTES,
|
.desired_access = FILE_READ_DATA | FILE_READ_ATTRIBUTES,
|
||||||
.disposition = FILE_OPEN,
|
.disposition = FILE_OPEN,
|
||||||
.fid = pfid,
|
.fid = pfid,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user