Lines Matching full:acl
31 * acl_valid -- POSIX.1e ACL check routine
36 #include <sys/acl.h>
44 * acl_valid: accepts an ACL, returns 0 on valid ACL, -1 for invalid,
49 * true. POSIX.1e allows acl_valid() to reorder the ACL as it sees fit.
51 * This call is deprecated, as it doesn't ask whether the ACL is valid
56 acl_valid(acl_t acl) in acl_valid() argument
60 if (acl == NULL) { in acl_valid()
64 if (!_acl_brand_may_be(acl, ACL_BRAND_POSIX)) { in acl_valid()
68 _posix1e_acl_sort(acl); in acl_valid()
69 error = _posix1e_acl_check(acl); in acl_valid()
79 acl_valid_file_np(const char *pathp, acl_type_t type, acl_t acl) in acl_valid_file_np() argument
82 if (pathp == NULL || acl == NULL) { in acl_valid_file_np()
87 if (_posix1e_acl(acl, type)) in acl_valid_file_np()
88 _posix1e_acl_sort(acl); in acl_valid_file_np()
90 return (__acl_aclcheck_file(pathp, type, &acl->ats_acl)); in acl_valid_file_np()
94 acl_valid_link_np(const char *pathp, acl_type_t type, acl_t acl) in acl_valid_link_np() argument
97 if (pathp == NULL || acl == NULL) { in acl_valid_link_np()
102 if (_posix1e_acl(acl, type)) in acl_valid_link_np()
103 _posix1e_acl_sort(acl); in acl_valid_link_np()
105 return (__acl_aclcheck_link(pathp, type, &acl->ats_acl)); in acl_valid_link_np()
109 acl_valid_fd_np(int fd, acl_type_t type, acl_t acl) in acl_valid_fd_np() argument
112 if (acl == NULL) { in acl_valid_fd_np()
117 if (_posix1e_acl(acl, type)) in acl_valid_fd_np()
118 _posix1e_acl_sort(acl); in acl_valid_fd_np()
120 acl->ats_cur_entry = 0; in acl_valid_fd_np()
122 return (___acl_aclcheck_fd(fd, type, &acl->ats_acl)); in acl_valid_fd_np()