diff options
author | Steve French <sfrench@us.ibm.com> | 2007-09-24 20:25:46 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-09-24 20:25:46 +0000 |
commit | 442aa310f3bc49cf4e059da790fbae62411d50db (patch) | |
tree | ee05b7a46729e25e92ce55bb3ad84bc0654f3715 /fs/cifs/cifsacl.h | |
parent | 2224f4e5d5317552d48ce9059761148b1516ba5d (diff) | |
download | linux-3.10-442aa310f3bc49cf4e059da790fbae62411d50db.tar.gz linux-3.10-442aa310f3bc49cf4e059da790fbae62411d50db.tar.bz2 linux-3.10-442aa310f3bc49cf4e059da790fbae62411d50db.zip |
[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.h | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/fs/cifs/cifsacl.h b/fs/cifs/cifsacl.h index 5eff35d6e56..97d03dc8169 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 */ |