Skip to content

Commit c8c412f

Browse files
author
Steve French
committed
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>
1 parent 30b5ae2 commit c8c412f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/cifs/smb2inode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
115115
vars->oparms.fid = &fid;
116116
vars->oparms.reconnect = false;
117117
vars->oparms.mode = mode;
118+
vars->oparms.cifs_sb = cifs_sb;
118119

119120
rqst[num_rqst].rq_iov = &vars->open_iov[0];
120121
rqst[num_rqst].rq_nvec = SMB2_CREATE_IOV_SIZE;

0 commit comments

Comments
 (0)