summaryrefslogtreecommitdiff
path: root/fs/cifs/cifsacl.h
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2007-09-24 20:25:46 +0000
committerSteve French <sfrench@us.ibm.com>2007-09-24 20:25:46 +0000
commit442aa310f3bc49cf4e059da790fbae62411d50db (patch)
treeee05b7a46729e25e92ce55bb3ad84bc0654f3715 /fs/cifs/cifsacl.h
parent2224f4e5d5317552d48ce9059761148b1516ba5d (diff)
[CIFS] Support for CIFS ACLs (part 1)
Add code to be able to dump CIFS ACL information when Query Posix ACL with cifsacl mount parm enabled. Signed-off-by: Shirish Pargoankar <shirishp@us.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsacl.h')
-rw-r--r--fs/cifs/cifsacl.h34
1 files changed, 32 insertions, 2 deletions
diff --git a/fs/cifs/cifsacl.h b/fs/cifs/cifsacl.h
index 5eff35d6e564..97d03dc8169c 100644
--- a/fs/cifs/cifsacl.h
+++ b/fs/cifs/cifsacl.h
@@ -22,12 +22,42 @@
#ifndef _CIFSACL_H
#define _CIFSACL_H
+struct cifs_ntsd {
+ __u16 revision; /* revision level */
+ __u16 type;
+ __u32 osidoffset;
+ __u32 gsidoffset;
+ __u32 sacloffset;
+ __u32 dacloffset;
+} __attribute__((packed));
+
struct cifs_sid {
__u8 revision; /* revision level */
- __u8 num_subauths;
+ __u8 num_auth;
+ __u8 authority[6];
+ __u32 sub_auth[4];
+ __u32 rid;
+} __attribute__((packed));
+
+struct cifs_acl {
+ __u16 revision; /* revision level */
+ __u16 size;
+ __u32 num_aces;
+} __attribute__((packed));
+
+struct cifs_ntace {
+ __u8 type;
+ __u8 flags;
+ __u16 size;
+ __u32 access_req;
+} __attribute__((packed));
+
+struct cifs_ace {
+ __u8 revision; /* revision level */
+ __u8 num_auth;
__u8 authority[6];
__u32 sub_auth[4];
- /* next sub_auth if any ... */
+ __u32 rid;
} __attribute__((packed));
/* everyone */