/freebsd-10.0-release/bin/cp/ |
H A D | utils.c | 39 #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/bin/getfacl/ |
H A D | getfacl.c | 39 #include <sys/acl.h> 93 acl_t acl; local 98 acl = acl_init(3); 99 if (!acl) 103 if (acl_create_entry(&acl, &entry) == -1) 127 if (acl_create_entry(&acl, &entry) == -1) 151 if (acl_create_entry(&acl, &entry) == -1) 174 return(acl); 182 acl_t acl; local 221 acl [all...] |
/freebsd-10.0-release/bin/ls/ |
H A D | print.c | 43 #include <sys/acl.h>
|
/freebsd-10.0-release/bin/mv/ |
H A D | mv.c | 48 #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/bin/setfacl/ |
H A D | file.c | 31 #include <sys/acl.h> 40 * read acl text from a file and return the corresponding acl
|
H A D | mask.c | 31 #include <sys/acl.h> 46 acl_t acl; local 60 acl = acl_dup(*prev_acl); 61 if (acl == NULL) 72 if (acl_calc_mask(&acl)) { 74 acl_free(acl); 86 while (acl_get_entry(acl, entry_id, &entry) == 1) { 93 acl_free(acl); 105 acl_free(acl); 110 *prev_acl = acl_dup(acl); [all...] |
H A D | merge.c | 31 #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 D | remove.c | 31 #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 D | setfacl.c | 33 #include <sys/acl.h> 46 #define OP_MERGE_ACL 0x00 /* merge acl's (-mM) */ 47 #define OP_REMOVE_DEF 0x01 /* remove default acl's (-k) */ 48 #define OP_REMOVE_EXT 0x02 /* remove extended acl's (-b) */ 49 #define OP_REMOVE_ACL 0x03 /* remove acl's (-xX) */ 50 #define OP_REMOVE_BY_NUMBER 0x04 /* remove acl's (-xX) by acl entry number */ 53 /* TAILQ entry for acl operations */ 56 acl_t acl; member in struct:sf_entry 103 acl_t acl; local [all...] |
H A D | setfacl.h | 33 #include <sys/acl.h> 39 int merge_acl(acl_t acl, acl_t *prev_acl, const char *filename); 40 int add_acl(acl_t acl, uint entry_number, acl_t *prev_acl, const char *filename); 42 int remove_acl(acl_t acl, acl_t *prev_acl, const char *filename);
|
/freebsd-10.0-release/contrib/bsnmp/snmp_vacm/ |
H A D | vacm_snmp.c | 267 struct vacm_access *acl; local 271 if ((acl = vacm_get_access_rule(&val->var, sub)) == NULL) 276 if ((acl = vacm_get_next_access_rule(&val->var, sub)) == NULL) 278 vacm_append_access_rule_index(&val->var, sub, acl); 282 if ((acl = vacm_get_access_rule(&val->var, sub)) == NULL && 285 if (acl != NULL && community != COMM_INITIALIZE && 286 acl->type == StorageType_readOnly) 291 ctx->scratch->int1 = acl->ctx_match; 293 acl->ctx_match = 1; 295 acl 682 vacm_append_access_rule_index(struct asn_oid *oid, uint sub, const struct vacm_access *acl) argument 736 struct vacm_access *acl; local 757 struct vacm_access *acl; local [all...] |
/freebsd-10.0-release/contrib/bsnmp/snmpd/ |
H A D | main.c | 379 struct vacm_access *acl; local 428 TAILQ_FOREACH_REVERSE(acl, &vacm_accesslist, vacm_accesslist, vva) { 429 if (acl->group != vuser->group) 432 if (memcmp(vacmctx->ctxname, acl->ctx_prefix, 433 acl->ctx_match) == 0) 445 if ((view = acl->read_view) == NULL) 450 if ((view = acl->write_view) == NULL) 458 if ((view = acl->notify_view) == NULL) 3010 vacm_next_access_rule(struct vacm_access *acl) argument 3012 if (acl 3064 struct vacm_access *acl, *temp; local 3110 vacm_delete_access_rule(struct vacm_access *acl) argument [all...] |
/freebsd-10.0-release/contrib/libarchive/libarchive/ |
H A D | archive_acl.c | 51 static int acl_special(struct archive_acl *acl, 53 static struct archive_acl_entry *acl_new_entry(struct archive_acl *acl, 55 static int archive_acl_add_entry_len_l(struct archive_acl *acl, 78 archive_acl_clear(struct archive_acl *acl) argument 82 while (acl->acl_head != NULL) { 83 ap = acl->acl_head->next; 84 archive_mstring_clean(&acl->acl_head->name); 85 free(acl->acl_head); 86 acl->acl_head = ap; 88 if (acl 119 archive_acl_add_entry(struct archive_acl *acl, int type, int permset, int tag, int id, const char *name) argument 139 archive_acl_add_entry_w_len(struct archive_acl *acl, int type, int permset, int tag, int id, const wchar_t *name, size_t len) argument 159 archive_acl_add_entry_len_l(struct archive_acl *acl, int type, int permset, int tag, int id, const char *name, size_t len, struct archive_string_conv *sc) argument 192 acl_special(struct archive_acl *acl, int type, int permset, int tag) argument 219 acl_new_entry(struct archive_acl *acl, int type, int permset, int tag, int id) argument 315 archive_acl_count(struct archive_acl *acl, int want_type) argument 339 archive_acl_reset(struct archive_acl *acl, int want_type) argument 369 archive_acl_next(struct archive *a, struct archive_acl *acl, int want_type, int *type, int *permset, int *tag, int *id, const char **name) argument 439 archive_acl_text_w(struct archive *a, struct archive_acl *acl, int flags) argument 626 archive_acl_text_l(struct archive_acl *acl, int flags, const char **acl_text, size_t *acl_text_len, struct archive_string_conv *sc) argument 824 archive_acl_parse_w(struct archive_acl *acl, const wchar_t *text, int default_type) argument 1054 archive_acl_parse_l(struct archive_acl *acl, const char *text, int default_type, struct archive_string_conv *sc) argument [all...] |
H A D | archive_entry.c | 166 archive_acl_clear(&entry->acl); 205 archive_acl_copy(&entry2->acl, &entry->acl); 351 return (AE_IFMT & entry->acl.mode); 497 return (entry->acl.mode); 558 return (~AE_IFMT & entry->acl.mode); 706 entry->acl.mode &= ~AE_IFMT; 707 entry->acl.mode |= AE_IFMT & type; 1000 entry->acl.mode = m; 1068 entry->acl [all...] |
H A D | archive_entry_private.h | 161 struct archive_acl acl; member in struct:archive_entry
|
H A D | archive_read_disk_entry_from_file.c | 34 /* 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...] |
H A D | archive_read_support_format_tar.c | 847 char *acl, *p; local 870 p = acl = tar->acl_text.s; 872 while (*p != '\0' && p < acl + size) { 903 if (p >= acl + size) { 910 size -= (p - acl); 911 acl = p; 913 while (*p != '\0' && p < acl + size) 922 archive_strncpy(&(tar->localname), acl, p - acl); 1759 if (strcmp(key, "SCHILY.acl [all...] |
H A D | archive_write_disk_acl.c | 35 #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 D | archive_write_disk_posix.c | 37 #include <sys/acl.h> 148 struct archive_acl acl; member in struct:fixup_entry 700 archive_acl_copy(&fe->acl, archive_entry_acl(entry)); 2176 -1, p->name, &p->acl); 2184 archive_acl_clear(&p->acl); 3408 acl_t acl, dfacl = NULL; local 3411 acl = acl_get_fd(tmpfd); 3412 if (acl == NULL) { 3417 "Failed to get metadata(acl)"); 3421 dfacl = acl_dup(acl); [all...] |
/freebsd-10.0-release/contrib/libarchive/libarchive/test/ |
H A D | test_acl_freebsd_nfs4.c | 30 #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 D | test_acl_freebsd_posix1e.c | 29 #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 D | test_acl_nfs4.c | 177 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 D | test_acl_pax.c | 95 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 D | test_acl_posix1e.c | 121 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));
|
H A D | test_write_disk_appledouble.c | 30 #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...] |