summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifspdu.h
diff options
context:
space:
mode:
authorShyam Prasad N <sprasad@microsoft.com>2020-11-09 15:12:49 +0100
committerSteve French <stfrench@microsoft.com>2020-12-14 02:12:07 +0100
commitf2156d35c9584a4afdb71de4bc24b3fef674a63d (patch)
tree2da2c02449befafa7bdb2045bd74da6c5c93d84f /fs/cifs/cifspdu.h
parentcifs: Fix unix perm bits to cifsacl conversion for "other" bits. (diff)
downloadlinux-f2156d35c9584a4afdb71de4bc24b3fef674a63d.tar.xz
linux-f2156d35c9584a4afdb71de4bc24b3fef674a63d.zip
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>
Diffstat (limited to 'fs/cifs/cifspdu.h')
-rw-r--r--fs/cifs/cifspdu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifspdu.h b/fs/cifs/cifspdu.h
index 593d826820c3..ce51183ecaf4 100644
--- a/fs/cifs/cifspdu.h
+++ b/fs/cifs/cifspdu.h
@@ -262,7 +262,7 @@
| WRITE_OWNER | SYNCHRONIZE)
#define SET_FILE_WRITE_RIGHTS (FILE_WRITE_DATA | FILE_APPEND_DATA \
| FILE_READ_EA | FILE_WRITE_EA \
- | FILE_DELETE_CHILD | FILE_READ_ATTRIBUTES \
+ | FILE_READ_ATTRIBUTES \
| FILE_WRITE_ATTRIBUTES \
| DELETE | READ_CONTROL | WRITE_DAC \
| WRITE_OWNER | SYNCHRONIZE)