Lines Matching refs:acl
37 #include <sys/acl.h>
54 acl_set_file(const char *path_p, acl_type_t type, acl_t acl)
57 if (acl == NULL || path_p == NULL) {
62 if (_acl_type_not_valid_for_acl(acl, type)) {
66 if (_posix1e_acl(acl, type))
67 _posix1e_acl_sort(acl);
69 acl->ats_cur_entry = 0;
71 return (__acl_set_file(path_p, type, &acl->ats_acl));
75 acl_set_link_np(const char *path_p, acl_type_t type, acl_t acl)
78 if (acl == NULL || path_p == NULL) {
83 if (_acl_type_not_valid_for_acl(acl, type)) {
87 if (_posix1e_acl(acl, type))
88 _posix1e_acl_sort(acl);
90 acl->ats_cur_entry = 0;
92 return (__acl_set_link(path_p, type, &acl->ats_acl));
96 acl_set_fd(int fd, acl_t acl)
100 return (acl_set_fd_np(fd, acl, ACL_TYPE_NFS4));
102 return (acl_set_fd_np(fd, acl, ACL_TYPE_ACCESS));
106 acl_set_fd_np(int fd, acl_t acl, acl_type_t type)
109 if (acl == NULL) {
114 if (_acl_type_not_valid_for_acl(acl, type)) {
118 if (_posix1e_acl(acl, type))
119 _posix1e_acl_sort(acl);
121 acl->ats_cur_entry = 0;
123 return (___acl_set_fd(fd, type, &acl->ats_acl));