diff options
author | Jeff Layton <jlayton@samba.org> | 2012-11-07 10:19:16 -0500 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2012-11-07 10:19:16 -0500 |
commit | 49d24798aec743f7acee76d7c9953cd2501f78d8 (patch) | |
tree | 549b40498ecd5202bb02a501fd5e906381019a39 | |
parent | 7b3796695ec4b2afe2feb05678be8f8a6b64044c (diff) | |
download | cifs-utils-49d24798aec743f7acee76d7c9953cd2501f78d8.tar.gz cifs-utils-49d24798aec743f7acee76d7c9953cd2501f78d8.tar.bz2 cifs-utils-49d24798aec743f7acee76d7c9953cd2501f78d8.zip |
cifsacl: header file cleanup
Remove the unused ace_action enum, and express mask values by or'ing
what they represent. Add a comment about the endianness of these values
in the packed structs too.
Signed-off-by: Jeff Layton <jlayton@samba.org>
-rw-r--r-- | cifsacl.h | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -83,7 +83,7 @@ #define NO_PROPAGATE_INHERIT_FLAG 0x04 /* NP */ #define INHERIT_ONLY_FLAG 0x08 /* IO */ #define INHERITED_ACE_FLAG 0x10 /* I */ -#define VFLAGS 0x1f +#define VFLAGS (OBJECT_INHERIT_FLAG|CONTAINER_INHERIT_FLAG|NO_PROPAGATE_INHERIT_FLAG|INHERIT_ONLY_FLAG|INHERITED_ACE_FLAG) #define ACCESS_ALLOWED 0 /* ALLOWED */ #define ACCESS_DENIED 1 /* DENIED */ @@ -94,18 +94,17 @@ #define COMPTYPE 0x2 #define COMPFLAG 0x4 #define COMPMASK 0x8 -#define COMPALL 0xf /* COMPSID | COMPTYPE | COMPFLAG | COMPMASK */ +#define COMPALL (COMPSID|COMPTYPE|COMPFLAG|COMPMASK) -#define NUM_AUTHS (6) /* number of authority fields */ -#define SID_MAX_SUB_AUTHORITIES (15) /* max number of sub authority fields */ - -enum ace_action { - acedelete = 0, - acemodify, - aceadd, - aceset -}; +#define NUM_AUTHS (6) /* number of authority fields */ +#define SID_MAX_SUB_AUTHORITIES (15) /* max number of sub authority fields */ +/* + * While not indicated here, the structs below represent on-the-wire data + * structures. Any multi-byte values are expected to be little-endian! + * + * FIXME: should we change these to use endianness annotations? + */ struct cifs_ntsd { uint16_t revision; /* revision level */ uint16_t type; |