]> git.baikalelectronics.ru Git - kernel.git/commit
SMB3: Fix mkdir when idsfromsid configured on mount
authorSteve French <stfrench@microsoft.com>
Thu, 13 Aug 2020 17:38:08 +0000 (12:38 -0500)
committerSteve French <stfrench@microsoft.com>
Fri, 14 Aug 2020 00:41:01 +0000 (19:41 -0500)
commitce7818a944dce79ba8ce8f9bff92bc805372aab0
tree279c2c89398f99fd426572301bc7843cae216812
parentef81a539b58738d8e06f7372899bd492a1d3e2bf
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>
fs/cifs/smb2inode.c