diff options
author | jedgar <jedgar@FreeBSD.org> | 2001-04-13 19:14:38 +0000 |
---|---|---|
committer | jedgar <jedgar@FreeBSD.org> | 2001-04-13 19:14:38 +0000 |
commit | 430f24915dac520156a872ef1f4dab8df98cb141 (patch) | |
tree | 3b2e3825bd5f7f3e1d38501a84e2b0c5313d00e4 | |
parent | e20549a88c4d5ced3b5cc3ba4344db52930a4486 (diff) | |
download | FreeBSD-src-430f24915dac520156a872ef1f4dab8df98cb141.zip FreeBSD-src-430f24915dac520156a872ef1f4dab8df98cb141.tar.gz |
Add the remaining POSIX.1e ACL definitions:
ACL_UNDEFINED_TAG, ACL_UNDEFINED_ID, ACL_FIRST_ENTRY, ACL_NEXT_ENTRY
Reviewed by: rwatson
Obtained from: TrustedBSD Project
-rw-r--r-- | lib/libc/posix1e/acl_entry.c | 3 | ||||
-rw-r--r-- | sys/sys/acl.h | 27 |
2 files changed, 20 insertions, 10 deletions
diff --git a/lib/libc/posix1e/acl_entry.c b/lib/libc/posix1e/acl_entry.c index 49dfb84..cfb5e80 100644 --- a/lib/libc/posix1e/acl_entry.c +++ b/lib/libc/posix1e/acl_entry.c @@ -34,9 +34,6 @@ #include <errno.h> #include <stdlib.h> -#define ACL_UNDEFINED_ID -1 -#define ACL_UNDEFINED_TAG -1 - int acl_create_entry(acl_t *acl_p, acl_entry_t *entry_p) { diff --git a/sys/sys/acl.h b/sys/sys/acl.h index 79ae968..ed49aa6 100644 --- a/sys/sys/acl.h +++ b/sys/sys/acl.h @@ -65,13 +65,14 @@ typedef struct acl *acl_t; /* * Possible valid values for ae_tag field. */ -#define ACL_USER_OBJ 0x00000001 -#define ACL_USER 0x00000002 -#define ACL_GROUP_OBJ 0x00000004 -#define ACL_GROUP 0x00000008 -#define ACL_MASK 0x00000010 -#define ACL_OTHER 0x00000020 -#define ACL_OTHER_OBJ ACL_OTHER +#define ACL_UNDEFINED_TAG 0x00000000 +#define ACL_USER_OBJ 0x00000001 +#define ACL_USER 0x00000002 +#define ACL_GROUP_OBJ 0x00000004 +#define ACL_GROUP 0x00000008 +#define ACL_MASK 0x00000010 +#define ACL_OTHER 0x00000020 +#define ACL_OTHER_OBJ ACL_OTHER /* * Possible valid values for acl_type_t arguments. @@ -93,6 +94,18 @@ typedef struct acl *acl_t; #define ACL_PERM_BITS (ACL_EXECUTE | ACL_WRITE | ACL_READ) #define ACL_POSIX1E_BITS (ACL_EXECUTE | ACL_WRITE | ACL_READ) +/* + * Possible entry_id values for acl_get_entry() + */ +#define ACL_FIRST_ENTRY 0 +#define ACL_NEXT_ENTRY 1 + +/* + * Undefined value in ae_id field + */ +#define ACL_UNDEFINED_ID ((uid_t)-1) + + #ifdef _KERNEL /* |