summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2000-09-21 19:05:30 +0000
committerrwatson <rwatson@FreeBSD.org>2000-09-21 19:05:30 +0000
commitccc6bdaaa9f2082e7cb1f234530626295ba7e59f (patch)
tree5a36b269008f0d0fd8ca26eb39950b0229cd2f59
parent7d3fbb2c275e954f3f0edd88614b200e4cdedbac (diff)
downloadFreeBSD-src-ccc6bdaaa9f2082e7cb1f234530626295ba7e59f.zip
FreeBSD-src-ccc6bdaaa9f2082e7cb1f234530626295ba7e59f.tar.gz
o Add two constants mapping ACLs into extended attribute names
o Add '.'s in comments to style(9)-ify them. o Clean up whitespace a little. Obtained from: TrustedBSD Project
-rw-r--r--sys/sys/acl.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/sys/acl.h b/sys/sys/acl.h
index 372be98..26d0126 100644
--- a/sys/sys/acl.h
+++ b/sys/sys/acl.h
@@ -25,7 +25,6 @@
*
* $FreeBSD$
*/
-
/*
* Userland/kernel interface for Access Control Lists.
*
@@ -37,9 +36,11 @@
#define _SYS_ACL_H
/*
- * POSIX.1e ACL types and related constants
+ * POSIX.1e ACL types and related constants.
*/
+#define POSIX1E_ACL_ACCESS_EXTATTR_NAME "$posix1e.acl_access"
+#define POSIX1E_ACL_DEFAULT_EXTATTR_NAME "$posix1e.acl_default"
#define ACL_MAX_ENTRIES 32 /* maximum entries in an ACL */
#define _POSIX_ACL_PATH_MAX ACL_MAX_ENTRIES
@@ -61,7 +62,7 @@ struct acl {
typedef struct acl *acl_t;
/*
- * Possible valid values for a_tag of acl_entry_t
+ * Possible valid values for a_tag of acl_entry_t.
*/
#define ACL_USER_OBJ 0x00000001
#define ACL_USER 0x00000002
@@ -72,7 +73,7 @@ typedef struct acl *acl_t;
#define ACL_OTHER_OBJ ACL_OTHER
/*
- * Possible valid values a_type_t arguments
+ * Possible valid values a_type_t arguments.
*/
#define ACL_TYPE_ACCESS 0x00000000
#define ACL_TYPE_DEFAULT 0x00000001
@@ -82,7 +83,7 @@ typedef struct acl *acl_t;
#define ACL_TYPE_NWFS 0x00000005
/*
- * Possible flags in a_perm field
+ * Possible flags in a_perm field.
*/
#define ACL_PERM_EXEC 0x0001
#define ACL_PERM_WRITE 0x0002
@@ -94,7 +95,7 @@ typedef struct acl *acl_t;
#ifdef _KERNEL
/*
- * Storage for ACLs and support structures
+ * Storage for ACLs and support structures.
*/
#ifdef MALLOC_DECLARE
MALLOC_DECLARE(M_ACL);
@@ -104,7 +105,7 @@ MALLOC_DECLARE(M_ACL);
/*
* Syscall interface -- use the library calls instead as the syscalls
- * have strict acl entry ordering requirements
+ * have strict acl entry ordering requirements.
*/
__BEGIN_DECLS
int __acl_aclcheck_fd(int _filedes, acl_type_t _type, struct acl *_aclp);
@@ -122,7 +123,7 @@ __END_DECLS
* Supported POSIX.1e ACL manipulation and assignment/retrieval API
* _np calls are local extensions that reflect an environment capable of
* opening file descriptors of directories, and allowing additional
- * ACL type for different file systems (i.e., AFS)
+ * ACL type for different file systems (i.e., AFS).
*/
__BEGIN_DECLS
int acl_delete_fd_np(int _filedes, acl_type_t _type);
OpenPOWER on IntegriCloud