From 8f45e8c07611579a6a623ef2201082816c2f39ae Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Wed, 26 Jan 2000 04:19:38 +0000 Subject: 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. --- sys/sys/acl.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'sys/sys/acl.h') 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 */ -- cgit v1.2.3