Add VSA_ACE_* and MAX_ACL_ENTRIES defines
The following flags are use to get the proper mask when getting and setting ACLs. I'm hopeful this can all largely go away at some point. We also add a define for the maximum number of ACL entries. MAX_ACL_ENTRIES is used as the maximum number of entries for each type.
This commit is contained in:
parent
e2b25f698c
commit
3fc97f9335
|
@ -43,6 +43,8 @@ typedef struct ace_object {
|
||||||
uint8_t a_inherit_obj_type[16]; /* inherit obj */
|
uint8_t a_inherit_obj_type[16]; /* inherit obj */
|
||||||
} ace_object_t;
|
} ace_object_t;
|
||||||
|
|
||||||
|
#define MAX_ACL_ENTRIES 1024
|
||||||
|
|
||||||
#define ACE_READ_DATA 0x00000001
|
#define ACE_READ_DATA 0x00000001
|
||||||
#define ACE_LIST_DIRECTORY 0x00000001
|
#define ACE_LIST_DIRECTORY 0x00000001
|
||||||
#define ACE_WRITE_DATA 0x00000002
|
#define ACE_WRITE_DATA 0x00000002
|
||||||
|
@ -107,4 +109,9 @@ typedef struct ace_object {
|
||||||
ACE_WRITE_ATTRIBUTES|ACE_DELETE|ACE_READ_ACL|ACE_WRITE_ACL| \
|
ACE_WRITE_ATTRIBUTES|ACE_DELETE|ACE_READ_ACL|ACE_WRITE_ACL| \
|
||||||
ACE_WRITE_OWNER|ACE_SYNCHRONIZE)
|
ACE_WRITE_OWNER|ACE_SYNCHRONIZE)
|
||||||
|
|
||||||
|
#define VSA_ACE 0x0010
|
||||||
|
#define VSA_ACECNT 0x0020
|
||||||
|
#define VSA_ACE_ALLTYPES 0x0040
|
||||||
|
#define VSA_ACE_ACLFLAGS 0x0080
|
||||||
|
|
||||||
#endif /* _SPL_ACL_H */
|
#endif /* _SPL_ACL_H */
|
||||||
|
|
Loading…
Reference in New Issue