diff options
author | Steve French <sfrench@us.ibm.com> | 2007-09-24 16:25:46 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-09-24 16:25:46 -0400 |
commit | 442aa310f3bc49cf4e059da790fbae62411d50db (patch) | |
tree | ee05b7a46729e25e92ce55bb3ad84bc0654f3715 /fs/cifs/cifsacl.h | |
parent | 2224f4e5d5317552d48ce9059761148b1516ba5d (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.h | 34 |
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 @@ | |||
22 | #ifndef _CIFSACL_H | 22 | #ifndef _CIFSACL_H |
23 | #define _CIFSACL_H | 23 | #define _CIFSACL_H |
24 | 24 | ||
25 | struct cifs_ntsd { | ||
26 | __u16 revision; /* revision level */ | ||
27 | __u16 type; | ||
28 | __u32 osidoffset; | ||
29 | __u32 gsidoffset; | ||
30 | __u32 sacloffset; | ||
31 | __u32 dacloffset; | ||
32 | } __attribute__((packed)); | ||
33 | |||
25 | struct cifs_sid { | 34 | struct cifs_sid { |
26 | __u8 revision; /* revision level */ | 35 | __u8 revision; /* revision level */ |
27 | __u8 num_subauths; | 36 | __u8 num_auth; |
37 | __u8 authority[6]; | ||
38 | __u32 sub_auth[4]; | ||
39 | __u32 rid; | ||
40 | } __attribute__((packed)); | ||
41 | |||
42 | struct cifs_acl { | ||
43 | __u16 revision; /* revision level */ | ||
44 | __u16 size; | ||
45 | __u32 num_aces; | ||
46 | } __attribute__((packed)); | ||
47 | |||
48 | struct cifs_ntace { | ||
49 | __u8 type; | ||
50 | __u8 flags; | ||
51 | __u16 size; | ||
52 | __u32 access_req; | ||
53 | } __attribute__((packed)); | ||
54 | |||
55 | struct cifs_ace { | ||
56 | __u8 revision; /* revision level */ | ||
57 | __u8 num_auth; | ||
28 | __u8 authority[6]; | 58 | __u8 authority[6]; |
29 | __u32 sub_auth[4]; | 59 | __u32 sub_auth[4]; |
30 | /* next sub_auth if any ... */ | 60 | __u32 rid; |
31 | } __attribute__((packed)); | 61 | } __attribute__((packed)); |
32 | 62 | ||
33 | /* everyone */ | 63 | /* everyone */ |