diff options
author | Steve French <stfrench@microsoft.com> | 2020-08-13 20:38:08 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-08-14 03:41:01 +0300 |
commit | c8c412f976124d85b8ded85c6ac3f760c12b63a3 (patch) | |
tree | 279c2c89398f99fd426572301bc7843cae216812 /fs/cifs | |
parent | 30b5ae21b9a51be4366e8ba8bf5b7bf7eb298ea3 (diff) | |
download | linux-c8c412f976124d85b8ded85c6ac3f760c12b63a3.tar.xz |
SMB3: Fix mkdir when idsfromsid configured on mount
mkdir uses a compounded create operation which was not setting
the security descriptor on create of a directory. Fix so
mkdir now sets the mode and owner info properly when idsfromsid
and modefromsid are configured on the mount.
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org> # v5.8
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/smb2inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/smb2inode.c b/fs/cifs/smb2inode.c index b9db73687eaa..eba01d0908dd 100644 --- a/fs/cifs/smb2inode.c +++ b/fs/cifs/smb2inode.c @@ -115,6 +115,7 @@ smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon, vars->oparms.fid = &fid; vars->oparms.reconnect = false; vars->oparms.mode = mode; + vars->oparms.cifs_sb = cifs_sb; rqst[num_rqst].rq_iov = &vars->open_iov[0]; rqst[num_rqst].rq_nvec = SMB2_CREATE_IOV_SIZE; |