summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsacl.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/cifsacl.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/cifsacl.h')
-rw-r--r--fs/cifs/cifsacl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/cifsacl.h b/fs/cifs/cifsacl.h
index 45665ff87b64..ff7fd0862e28 100644
--- a/fs/cifs/cifsacl.h
+++ b/fs/cifs/cifsacl.h
@@ -30,6 +30,10 @@
#define WRITE_BIT 0x2
#define EXEC_BIT 0x1
+#define ACL_OWNER_MASK 0700
+#define ACL_GROUP_MASK 0770
+#define ACL_EVERYONE_MASK 0777
+
#define UBITSHIFT 6
#define GBITSHIFT 3