]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Enable sticky bit with cifsacl mount option.
authorShyam Prasad N <sprasad@microsoft.com>
Mon, 9 Nov 2020 14:12:49 +0000 (06:12 -0800)
committerSteve French <stfrench@microsoft.com>
Mon, 14 Dec 2020 01:12:07 +0000 (19:12 -0600)
commitd003f78af62784377c6dc507a91920a43557a2e6
tree2da2c02449befafa7bdb2045bd74da6c5c93d84f
parent8f74c6792cbb4969f95b958a85ad137db28e0408
cifs: Enable sticky bit with cifsacl mount option.

For the cifsacl mount option, we did not support sticky bits.
With this patch, we do support it, by setting the DELETE_CHILD perm
on the directory only for the owner user. When sticky bit is not
enabled, allow DELETE_CHILD perm for everyone.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsacl.c
fs/cifs/cifsacl.h
fs/cifs/cifspdu.h