]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commitf2156d35c9584a4afdb71de4bc24b3fef674a63d
tree2da2c02449befafa7bdb2045bd74da6c5c93d84f
parent0f22053e811ca5dd5d51b919741e02396ea600f3
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