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
This commit is contained in:
parent
7d3fbb2c27
commit
ccc6bdaaa9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user