Lines Matching refs:acl
37 #include <sys/acl.h>
57 acl_valid(acl_t acl)
61 if (acl == NULL) {
65 if (!_acl_brand_may_be(acl, ACL_BRAND_POSIX)) {
69 _posix1e_acl_sort(acl);
70 error = _posix1e_acl_check(acl);
80 acl_valid_file_np(const char *pathp, acl_type_t type, acl_t acl)
83 if (pathp == NULL || acl == NULL) {
88 if (_posix1e_acl(acl, type))
89 _posix1e_acl_sort(acl);
91 return (__acl_aclcheck_file(pathp, type, &acl->ats_acl));
95 acl_valid_link_np(const char *pathp, acl_type_t type, acl_t acl)
98 if (pathp == NULL || acl == NULL) {
103 if (_posix1e_acl(acl, type))
104 _posix1e_acl_sort(acl);
106 return (__acl_aclcheck_link(pathp, type, &acl->ats_acl));
110 acl_valid_fd_np(int fd, acl_type_t type, acl_t acl)
113 if (acl == NULL) {
118 if (_posix1e_acl(acl, type))
119 _posix1e_acl_sort(acl);
121 acl->ats_cur_entry = 0;
123 return (___acl_aclcheck_fd(fd, type, &acl->ats_acl));