Lines Matching defs:acl
43 #include <sys/acl.h>
62 acl_valid(acl_t acl)
66 if (acl == NULL) {
70 if (!_acl_brand_may_be(acl, ACL_BRAND_POSIX)) {
74 _posix1e_acl_sort(acl);
75 error = _posix1e_acl_check(acl);
85 acl_valid_file_np(const char *pathp, acl_type_t type, acl_t acl)
88 if (pathp == NULL || acl == NULL) {
93 if (_posix1e_acl(acl, type))
94 _posix1e_acl_sort(acl);
96 return (__acl_aclcheck_file(pathp, type, &acl->ats_acl));
100 acl_valid_link_np(const char *pathp, acl_type_t type, acl_t acl)
103 if (pathp == NULL || acl == NULL) {
108 if (_posix1e_acl(acl, type))
109 _posix1e_acl_sort(acl);
111 return (__acl_aclcheck_link(pathp, type, &acl->ats_acl));
115 acl_valid_fd_np(int fd, acl_type_t type, acl_t acl)
118 if (acl == NULL) {
123 if (_posix1e_acl(acl, type))
124 _posix1e_acl_sort(acl);
126 acl->ats_cur_entry = 0;
128 return (__acl_aclcheck_fd(fd, type, &acl->ats_acl));