Searched refs:acl (Results 26 - 50 of 132) sorted by relevance

123456

/freebsd-10.0-release/bin/cp/
H A Dutils.c39 #include <sys/acl.h>
397 acl_t acl; local
423 acl = acl_get_fd_np(source_fd, acl_type);
424 if (acl == NULL) {
425 warn("failed to get acl entries while setting %s", to.p_path);
428 if (acl_is_trivial_np(acl, &trivial)) {
430 acl_free(acl);
434 acl_free(acl);
437 if (acl_set_fd_np(dest_fd, acl, acl_type) < 0) {
438 warn("failed to set acl entrie
452 acl_t acl; local
[all...]
/freebsd-10.0-release/contrib/libarchive/libarchive/test/
H A Dtest_acl_freebsd_posix1e.c29 #include <sys/acl.h>
131 compare_acls(acl_t acl, struct myacl_t *myacls) argument
152 * Iterate over acls in system acl object, try to match each
155 while (1 == acl_get_entry(acl, entry_id, &acl_entry)) {
174 /* Dump entries in the myacls array that weren't in the system acl. */
204 acl_t acl;
211 acl = acl_from_text("u::rwx,u:1:rw,g::rwx,g:15:rx,o::rwx,m::rwx");
212 assert((void *)acl != NULL);
217 acl_free(acl);
221 n = acl_set_fd(fd, acl);
[all...]
H A Dtest_acl_freebsd_nfs4.c30 #include <sys/acl.h>
294 compare_acls(acl_t acl, struct myacl_t *myacls, const char *filename, int start, int end) argument
313 * Iterate over acls in system acl object, try to match each
316 while (1 == acl_get_entry(acl, entry_id, &acl_entry)) {
334 /* Dump entries in the myacls array that weren't in the system acl. */
394 /* Dump entries in the myacls array that weren't in the system acl. */
424 acl_t acl;
431 acl = acl_from_text("owner@:rwxp::allow,group@:rwp:f:allow");
432 assert((void *)acl != NULL);
435 acl_free(acl);
[all...]
H A Dtest_acl_nfs4.c177 acl_match(struct acl_t *acl, int type, int permset, int tag, int qual, argument
180 if (acl == NULL)
182 if (type != acl->type)
184 if (permset != acl->permset)
186 if (tag != acl->tag)
194 if (qual != acl->qual)
197 if (acl->name == NULL || acl->name[0] == '\0')
201 if (acl->name == NULL) {
206 return (0 == strcmp(name, acl
[all...]
H A Dtest_write_disk_appledouble.c30 #include <sys/acl.h>
87 acl_t acl;
138 assert(NULL != (acl = acl_get_file("file3", ACL_TYPE_EXTENDED)));
139 assertEqualString(acl_to_text(acl, NULL),
140 "!#acl 1\n"
144 if (acl) acl_free(acl);
197 assert(NULL != (acl = acl_get_file("file3", ACL_TYPE_EXTENDED)));
198 assertEqualString(acl_to_text(acl, NULL),
199 "!#acl
[all...]
H A Dtest_acl_pax.c95 acl_match(struct acl_t *acl, int type, int permset, int tag, int qual, const char *name) argument
97 if (type != acl->type)
99 if (permset != acl->permset)
101 if (tag != acl->tag)
109 if (qual != acl->qual)
112 return (acl->name == NULL || acl->name[0] == '\0');
113 if (acl->name == NULL)
115 return (0 == strcmp(name, acl->name));
H A Dtest_acl_posix1e.c121 acl_match(struct acl_t *acl, int type, int permset, int tag, int qual, const char *name) argument
123 if (type != acl->type)
125 if (permset != acl->permset)
127 if (tag != acl->tag)
135 if (qual != acl->qual)
138 if (acl->name == NULL || acl->name[0] == '\0')
142 if (acl->name == NULL) {
147 return (0 == strcmp(name, acl->name));
/freebsd-10.0-release/lib/libc/posix1e/
H A Dacl_copy.c32 #include <sys/acl.h>
73 acl_copy_ext(void *buf_p, acl_t acl, ssize_t size) argument
H A Dacl_support.c36 #include <sys/acl.h>
133 _posix1e_acl_sort(acl_t acl) argument
135 struct acl *acl_int;
137 acl_int = &acl->ats_acl;
149 _posix1e_acl(acl_t acl, acl_type_t type) argument
152 if (_acl_brand(acl) != ACL_BRAND_POSIX)
173 _posix1e_acl_check(acl_t acl) argument
175 struct acl *acl_int;
183 acl_int = &acl->ats_acl;
185 /* printf("_posix1e_acl_check: checking acl wit
347 _posix1e_acl_add_entry(acl_t acl, acl_tag_t tag, uid_t id, acl_perm_t perm) argument
[all...]
H A Dacl_to_text.c27 * acl_to_text - return a text string with a text representation of the acl
36 #include <sys/acl.h>
46 * acl_to_text - generate a text form of an acl
47 * spec says nothing about output ordering, so leave in acl order
53 char *_nfs4_acl_to_text_np(const acl_t acl, ssize_t *len_p, int flags);
56 _posix1e_acl_to_text(acl_t acl, ssize_t *len_p, int flags) argument
58 struct acl *acl_int;
72 acl_int = &acl->ats_acl;
237 acl_to_text_np(acl_t acl, ssize_t *len_p, int flags) argument
240 if (acl
257 acl_to_text(acl_t acl, ssize_t *len_p) argument
[all...]
H A Dacl_compat.c30 #include <sys/acl.h>
H A Dacl_delete.c29 * acl_delete_def_file -- remove a default acl from a file
37 #include <sys/acl.h>
H A Dacl_calc_mask.c32 #include <sys/acl.h>
49 struct acl *acl_int, *acl_int_new;
/freebsd-10.0-release/sys/ufs/ufs/
H A Dufs_acl.c45 #include <sys/acl.h>
51 #include <ufs/ufs/acl.h>
68 ufs_sync_acl_from_inode(struct inode *ip, struct acl *acl) argument
80 for (i = 0; i < acl->acl_cnt; i++) {
81 switch (acl->acl_entry[i].ae_tag) {
83 acl->acl_entry[i].ae_perm = acl_posix1e_mode_to_perm(
85 acl->acl_entry[i].ae_id = ACL_UNDEFINED_ID;
89 acl_group_obj = &acl->acl_entry[i];
90 acl
137 ufs_sync_inode_from_acl(struct acl *acl, struct inode *ip) argument
[all...]
/freebsd-10.0-release/sys/kern/
H A Dvfs_acl.c54 #include <sys/acl.h>
60 MALLOC_DEFINE(M_ACL, "acl", "Access Control Lists");
63 acl_type_t type, struct acl *aclp);
65 acl_type_t type, struct acl *aclp);
67 acl_type_t type, struct acl *aclp);
70 acl_copy_oldacl_into_acl(const struct oldacl *source, struct acl *dest)
92 acl_copy_acl_into_oldacl(const struct acl *source, struct oldacl *dest)
119 * oldacl". If it's something else, then it's the new "struct acl". In the
125 acl_copyin(void *user_acl, struct acl *kernel_acl, acl_type_t type)
149 acl_copyout(struct acl *kernel_ac
[all...]
H A Dsubr_acl_nfs4.c47 #include <sys/acl.h>
51 #include <sys/acl.h>
60 static void acl_nfs4_trivial_from_mode(struct acl *aclp, mode_t mode);
110 _acl_denies(const struct acl *aclp, int access_mask, struct ucred *cred,
173 struct acl *aclp, accmode_t accmode, struct ucred *cred, int *privused)
329 _acl_append(struct acl *aclp, acl_tag_t tag, acl_perm_t perm,
350 _acl_duplicate_entry(struct acl *aclp, int entry_index)
366 acl_nfs4_sync_acl_from_mode_draft(struct acl *aclp, mode_t mode,
712 acl_nfs4_sync_acl_from_mode(struct acl *aclp, mode_t mode,
724 acl_nfs4_sync_mode_from_acl(mode_t *_mode, const struct acl *acl
[all...]
/freebsd-10.0-release/sys/cddl/contrib/opensolaris/common/acl/
H A Dacl_common.c34 #include <acl/acl_common.h>
1274 ace_list_t *normacl = NULL, *dfacl = NULL, *acl; local
1330 /* see if this should be a regular or default acl */
1343 acl = dfacl;
1345 acl = normacl;
1349 if (acl->state > ace_user_obj) {
1353 acl->state = ace_user_obj;
1354 acl->seen |= USER_OBJ;
1355 vals = &acl->user_obj;
1356 vals->aent_type = USER_OBJ | acl
1639 acl_trivial_create(mode_t mode, boolean_t isdir, ace_t **acl, int *count) argument
[all...]
H A Dacl_common.h30 #include <sys/acl.h>
61 int acl_trivial_create(mode_t mode, boolean_t isdir, ace_t **acl, int *count);
/freebsd-10.0-release/bin/setfacl/
H A Dremove.c31 #include <sys/acl.h>
44 remove_acl(acl_t acl, acl_t *prev_acl, const char *filename) argument
53 acl_get_brand_np(acl, &acl_brand);
73 while (acl_get_entry(acl, entry_id, &entry) == 1) {
H A Dmerge.c31 #include <sys/acl.h>
89 merge_acl(acl_t acl, acl_t *prev_acl, const char *filename) argument
100 acl_get_brand_np(acl, &acl_brand);
116 while (acl_get_entry(acl, entry_id, &entry) == 1) {
240 add_acl(acl_t acl, uint entry_number, acl_t *prev_acl, const char *filename) argument
246 acl_get_brand_np(acl, &acl_brand);
268 while (acl_get_entry(acl, entry_id, &entry) == 1) {
H A Dfile.c31 #include <sys/acl.h>
40 * read acl text from a file and return the corresponding acl
/freebsd-10.0-release/contrib/libarchive/libarchive/
H A Darchive_write_disk_acl.c35 #include <sys/acl.h>
130 acl_t acl; local
146 acl = acl_init(entries);
149 acl_create_entry(&acl, &acl_entry);
224 if (fd >= 0 && acl_type == ACL_TYPE_ACCESS && acl_set_fd(fd, acl) == 0)
229 if (fd >= 0 && acl_set_fd_np(fd, acl, acl_type) == 0)
235 if (acl_set_link_np(name, acl_type, acl) != 0) {
236 archive_set_error(a, errno, "Failed to set %s acl", tname);
241 if (acl_set_file(name, acl_type, acl) != 0) {
242 archive_set_error(a, errno, "Failed to set %s acl", tnam
[all...]
H A Darchive_read_disk_entry_from_file.c34 /* Mac OSX requires sys/types.h before sys/acl.h. */
38 #include <sys/acl.h>
61 #include <acl/libacl.h>
404 struct archive_entry *entry, acl_t acl, int archive_entry_acl_type);
411 acl_t acl; local
424 acl = acl_get_fd(*fd);
427 acl = acl_get_link_np(accpath, ACL_TYPE_NFS4);
433 acl = NULL;
436 acl = acl_get_file(accpath, ACL_TYPE_NFS4);
439 acl_is_trivial_np(acl,
524 translate_acl(struct archive_read_disk *a, struct archive_entry *entry, acl_t acl, int default_entry_acl_type) argument
[all...]
/freebsd-10.0-release/bin/mv/
H A Dmv.c48 #include <sys/acl.h>
446 acl_t acl; local
473 acl = acl_get_fd_np(source_fd, acl_type);
474 if (acl == NULL) {
475 warn("failed to get acl entries for %s", source_path);
478 if (acl_is_trivial_np(acl, &trivial)) {
480 acl_free(acl);
484 acl_free(acl);
487 if (acl_set_fd_np(dest_fd, acl, acl_type) < 0) {
488 warn("failed to set acl entrie
[all...]
/freebsd-10.0-release/contrib/unbound/daemon/
H A Ddaemon.h100 struct acl_list* acl; member in struct:daemon

Completed in 198 milliseconds

123456