Lines Matching defs:acl
43 #include <sys/acl.h>
59 acl_set_file(const char *path_p, acl_type_t type, acl_t acl)
62 if (acl == NULL || path_p == NULL) {
67 if (_acl_type_not_valid_for_acl(acl, type)) {
71 if (_posix1e_acl(acl, type))
72 _posix1e_acl_sort(acl);
74 acl->ats_cur_entry = 0;
76 return (__acl_set_file(path_p, type, &acl->ats_acl));
80 acl_set_link_np(const char *path_p, acl_type_t type, acl_t acl)
83 if (acl == NULL || path_p == NULL) {
88 if (_acl_type_not_valid_for_acl(acl, type)) {
92 if (_posix1e_acl(acl, type))
93 _posix1e_acl_sort(acl);
95 acl->ats_cur_entry = 0;
97 return (__acl_set_link(path_p, type, &acl->ats_acl));
101 acl_set_fd(int fd, acl_t acl)
105 return (acl_set_fd_np(fd, acl, ACL_TYPE_NFS4));
107 return (acl_set_fd_np(fd, acl, ACL_TYPE_ACCESS));
111 acl_set_fd_np(int fd, acl_t acl, acl_type_t type)
114 if (acl == NULL) {
119 if (_acl_type_not_valid_for_acl(acl, type)) {
123 if (_posix1e_acl(acl, type))
124 _posix1e_acl_sort(acl);
126 acl->ats_cur_entry = 0;
128 return (__acl_set_fd(fd, type, &acl->ats_acl));