diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2000-01-26 04:19:38 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2000-01-26 04:19:38 +0000 |
commit | 8f45e8c07611579a6a623ef2201082816c2f39ae (patch) | |
tree | 3c9c6a2c285edd25bc3bf350bab4af093e85f3aa /sys/sys/acl.h | |
parent | 2fff585062e948ff849437905d9b51be9658b2b6 (diff) | |
download | src-8f45e8c07611579a6a623ef2201082816c2f39ae.tar.gz src-8f45e8c07611579a6a623ef2201082816c2f39ae.zip |
Minor fixes to library interface to improve POSIX.1e compliance. This
adds _np to a couple of function prototypes that provided more broad/useful
interfaces than POSIX.1e interfaces included.
Also, move from using a heuristic to identify POSIX.1e-semantic ACLs to
using different ACL types for non-POSIX.1e ACLs. This should clean up the
existing fuzzy logic that determined when acl_sort() should be applied
before kernel submission.
Notes
Notes:
svn path=/head/; revision=56625
Diffstat (limited to 'sys/sys/acl.h')
-rw-r--r-- | sys/sys/acl.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/sys/acl.h b/sys/sys/acl.h index a7c5633e7fda..08f17d4723a6 100644 --- a/sys/sys/acl.h +++ b/sys/sys/acl.h @@ -74,6 +74,7 @@ typedef struct acl *acl_t; #define ACL_TYPE_ACCESS 0x00000000 #define ACL_TYPE_DEFAULT 0x00000001 +#define ACL_TYPE_AFS 0x00000003 /* * Possible flags in a_perm field @@ -134,19 +135,22 @@ __END_DECLS */ __BEGIN_DECLS int acl_calc_mask(acl_t *acl_p); -int acl_delete_def_fd(int filedes); +int acl_delete_fd_np(int filedes, acl_type_t type); +int acl_delete_file_np(const char *path_p, acl_type_t type); int acl_delete_def_file(const char *path_p); int acl_free(void *obj_p); acl_t acl_from_text(const char *buf_p); -acl_t acl_get_fd(int fd, acl_type_t type); +acl_t acl_get_fd(int fd); +acl_t acl_get_fd_np(int fd, acl_type_t type); acl_t acl_get_file(const char *path_p, acl_type_t type); acl_t acl_init(int count); -int acl_set_fd(int fd, acl_t acl, acl_type_t type); +int acl_set_fd(int fd, acl_t acl); +int acl_set_fd_np(int fd, acl_t acl, acl_type_t type); int acl_set_file(const char *path_p, acl_type_t type, acl_t acl); char *acl_to_text(acl_t acl, ssize_t *len_p); int acl_valid(acl_t acl); -int acl_valid_fd(int fd, acl_type_t type, acl_t acl); -int acl_valid_file(const char *path_p, acl_type_t type, acl_t acl); +int acl_valid_fd_np(int fd, acl_type_t type, acl_t acl); +int acl_valid_file_np(const char *path_p, acl_type_t type, acl_t acl); __END_DECLS #endif /* !_KERNEL */ |