summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsacl.h
diff options
context:
space:
mode:
authorShyam Prasad N <sprasad@microsoft.com>2020-11-09 06:12:49 -0800
committerSteve French <stfrench@microsoft.com>2020-12-13 19:12:07 -0600
commitf2156d35c9584a4afdb71de4bc24b3fef674a63d (patch)
tree2da2c02449befafa7bdb2045bd74da6c5c93d84f /fs/cifs/cifsacl.h
parent0f22053e811ca5dd5d51b919741e02396ea600f3 (diff)
downloadlinux-f2156d35c9584a4afdb71de4bc24b3fef674a63d.tar.bz2
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