/freebsd-11-stable/sys/cddl/compat/opensolaris/sys/ |
H A D | acl.h | 32 #include_next <sys/acl.h> 34 struct acl; 36 void aces_from_acl(ace_t *aces, int *nentries, const struct acl *aclp); 37 int acl_from_aces(struct acl *aclp, const ace_t *aces, int nentries);
|
/freebsd-11-stable/lib/libc/posix1e/ |
H A D | acl_valid.c | 37 #include <sys/acl.h> 57 acl_valid(acl_t acl) argument 61 if (acl == NULL) { 65 if (!_acl_brand_may_be(acl, ACL_BRAND_POSIX)) { 69 _posix1e_acl_sort(acl); 70 error = _posix1e_acl_check(acl); 80 acl_valid_file_np(const char *pathp, acl_type_t type, acl_t acl) argument 83 if (pathp == NULL || acl == NULL) { 88 if (_posix1e_acl(acl, type)) 89 _posix1e_acl_sort(acl); 95 acl_valid_link_np(const char *pathp, acl_type_t type, acl_t acl) argument 110 acl_valid_fd_np(int fd, acl_type_t type, acl_t acl) argument [all...] |
H A D | acl_branding.c | 32 #include <sys/acl.h> 63 _acl_brand(const acl_t acl) argument 66 return (acl->ats_brand); 80 _acl_brand_may_be(const acl_t acl, int brand) argument 83 if (_acl_brand(acl) == ACL_BRAND_UNKNOWN) 86 if (_acl_brand(acl) == brand) 103 _acl_brand_as(acl_t acl, int brand) argument 106 assert(_acl_brand_may_be(acl, brand)); 108 acl->ats_brand = brand; 119 _acl_type_not_valid_for_acl(const acl_t acl, acl_type_ argument 141 _acl_brand_from_type(acl_t acl, acl_type_t type) argument 159 acl_get_brand_np(acl_t acl, int *brand_p) argument [all...] |
H A D | acl_delete_entry.c | 32 #include <sys/acl.h> 72 * from acl. 75 acl_delete_entry(acl_t acl, acl_entry_t entry_d) argument 77 struct acl *acl_int; 81 if (acl == NULL || entry_d == NULL) { 86 acl_int = &acl->ats_acl; 88 if (_entry_brand(entry_d) != _acl_brand(acl)) { 93 if ((acl->ats_acl.acl_cnt < 1) || 94 (acl->ats_acl.acl_cnt > ACL_MAX_ENTRIES)) { 102 for (i = 0; i < acl 128 acl_delete_entry_np(acl_t acl, int offset) argument [all...] |
H A D | acl_init.c | 27 * acl_init -- return a fresh acl structure 28 * acl_dup -- duplicate an acl and return the new copy 36 #include <sys/acl.h> 57 acl_t acl; local 68 error = posix_memalign((void *)&acl, 1 << _ACL_T_ALIGNMENT_BITS, 75 bzero(acl, sizeof(struct acl_t_struct)); 76 acl->ats_brand = ACL_BRAND_UNKNOWN; 77 acl->ats_acl.acl_maxcnt = ACL_MAX_ENTRIES; 79 return (acl); 83 acl_dup(acl_t acl) argument [all...] |
H A D | acl_set.c | 37 #include <sys/acl.h> 54 acl_set_file(const char *path_p, acl_type_t type, acl_t acl) argument 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) argument 78 if (acl 96 acl_set_fd(int fd, acl_t acl) argument 106 acl_set_fd_np(int fd, acl_t acl, acl_type_t type) argument [all...] |
H A D | acl_support.h | 40 int _acl_type_not_valid_for_acl(const acl_t acl, acl_type_t type); 41 void _acl_brand_from_type(acl_t acl, acl_type_t type); 42 int _acl_brand(const acl_t acl); 44 int _acl_brand_may_be(const acl_t acl, int brand); 46 void _acl_brand_as(acl_t acl, int brand); 54 int _posix1e_acl_check(acl_t acl); 55 void _posix1e_acl_sort(acl_t acl); 56 int _posix1e_acl(acl_t acl, acl_type_t type); 62 int _posix1e_acl_add_entry(acl_t acl, acl_tag_t tag, uid_t id,
|
H A D | acl_entry.c | 32 #include <sys/acl.h> 45 struct acl *acl_int; 80 struct acl *acl_int; 123 acl_get_entry(acl_t acl, int entry_id, acl_entry_t *entry_p) argument 125 struct acl *acl_int; 127 if (acl == NULL) { 131 acl_int = &acl->ats_acl; 135 acl->ats_cur_entry = 0; 138 if (acl->ats_cur_entry >= acl [all...] |
H A D | acl_from_text.c | 35 #include <sys/acl.h> 194 acl_t acl; local 203 acl = acl_init(3); /* XXX: WTF, 3? */ 204 if (acl == NULL) { 223 if (_acl_brand(acl) == ACL_BRAND_UNKNOWN) { 225 _acl_brand_as(acl, ACL_BRAND_NFS4); 227 _acl_brand_as(acl, ACL_BRAND_POSIX); 230 switch (_acl_brand(acl)) { 232 error = _nfs4_acl_entry_from_text(acl, entry); 236 error = _posix1e_acl_entry_from_text(acl, entr [all...] |
/freebsd-11-stable/sys/ufs/ufs/ |
H A D | acl.h | 40 int ufs_getacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct thread *td); 41 int ufs_setacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct thread *td); 42 void ufs_sync_acl_from_inode(struct inode *ip, struct acl *acl); 43 void ufs_sync_inode_from_acl(struct acl *acl, struct inode *ip);
|
/freebsd-11-stable/bin/setfacl/ |
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 | 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);
|
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...] |
/freebsd-11-stable/crypto/heimdal/lib/krb5/ |
H A D | acl.c | 47 free_retv(struct acl_field *acl) argument 49 while(acl != NULL) { 50 if (acl->type == acl_retval) { 51 if (*acl->u.retv) 52 free(*acl->u.retv); 53 *acl->u.retv = NULL; 55 acl = acl->next; 60 acl_free_list(struct acl_field *acl, int retv) argument 64 free_retv(acl); 79 struct acl_field *acl = NULL, *tmp; local 135 acl_match_acl(krb5_context context, struct acl_field *acl, const char *string) argument 209 struct acl_field *acl; local 251 struct acl_field *acl; local [all...] |
/freebsd-11-stable/sys/net80211/ |
H A D | ieee80211_acl.c | 73 struct acl { struct 74 TAILQ_ENTRY(acl) acl_list; 75 LIST_ENTRY(acl) acl_hash; 82 TAILQ_HEAD(, acl) as_list; /* list of all ACL's */ 83 LIST_HEAD(, acl) as_hash[ACL_HASHSIZE]; 91 static MALLOC_DEFINE(M_80211_ACL, "acl", "802.11 station acl"); 107 ACL_LOCK_INIT(as, "acl"); 130 static __inline struct acl * 133 struct acl *ac local 145 _acl_free(struct aclstate *as, struct acl *acl) argument 176 struct acl *acl, *new; local 215 struct acl *acl; local 234 struct acl *acl; local 292 struct acl *acl; local [all...] |
/freebsd-11-stable/contrib/unbound/daemon/ |
H A D | acl_list.c | 54 struct acl_list* acl = (struct acl_list*)calloc(1, local 56 if(!acl) 58 acl->region = regional_create(); 59 if(!acl->region) { 60 acl_list_delete(acl); 63 return acl; 67 acl_list_delete(struct acl_list* acl) argument 69 if(!acl) 71 regional_destroy(acl->region); 72 free(acl); 77 acl_list_insert(struct acl_list* acl, struct sockaddr_storage* addr, socklen_t addrlen, int net, enum acl_access control, int complain_duplicates) argument 95 acl_list_str_cfg(struct acl_list* acl, const char* str, const char* s2, int complain_duplicates) argument 134 acl_find_or_create(struct acl_list* acl, const char* str) argument 160 acl_list_tags_cfg(struct acl_list* acl, const char* str, uint8_t* bitmap, size_t bitmaplen) argument 177 acl_list_view_cfg(struct acl_list* acl, const char* str, const char* str2, struct views* vs) argument 194 acl_list_tag_action_cfg(struct acl_list* acl, struct config_file* cfg, const char* str, const char* tag, const char* action) argument 283 acl_list_tag_data_cfg(struct acl_list* acl, struct config_file* cfg, const char* str, const char* tag, const char* data) argument 333 read_acl_list(struct acl_list* acl, struct config_file* cfg) argument 346 read_acl_tags(struct acl_list* acl, struct config_file* cfg) argument 368 read_acl_view(struct acl_list* acl, struct config_file* cfg, struct views* v) argument 389 read_acl_tag_actions(struct acl_list* acl, struct config_file* cfg) argument 414 read_acl_tag_datas(struct acl_list* acl, struct config_file* cfg) argument 437 acl_list_apply_cfg(struct acl_list* acl, struct config_file* cfg, struct views* v) argument 470 acl_get_control(struct acl_addr* acl) argument 477 acl_addr_lookup(struct acl_list* acl, struct sockaddr_storage* addr, socklen_t addrlen) argument 485 acl_list_get_mem(struct acl_list* acl) argument [all...] |
H A D | acl_list.h | 111 * Create acl structure 117 * Delete acl structure. 118 * @param acl: to delete. 120 void acl_list_delete(struct acl_list* acl); 124 * @param acl: where to store. 129 int acl_list_apply_cfg(struct acl_list* acl, struct config_file* cfg, 133 * Lookup access control status for acl structure. 134 * @param acl: structure for acl storage. 137 enum acl_access acl_get_control(struct acl_addr* acl); [all...] |
/freebsd-11-stable/sys/kern/ |
H A D | subr_acl_posix1e.c | 48 #include <sys/acl.h> 53 * and is passed via 'uid', 'gid', and 'acl'. Return 0 on success, else an 58 struct acl *acl, accmode_t accmode, struct ucred *cred, int *privused) 100 if ((accmode & VEXEC) && (acl_posix1e_acl_to_mode(acl) & 123 for (i = 0; i < acl->acl_cnt; i++) { 124 switch (acl->acl_entry[i].ae_tag) { 130 if (acl->acl_entry[i].ae_perm & ACL_EXECUTE) 132 if (acl->acl_entry[i].ae_perm & ACL_READ) 134 if (acl 57 vaccess_acl_posix1e(enum vtype type, uid_t file_uid, gid_t file_gid, struct acl *acl, accmode_t accmode, struct ucred *cred, int *privused) argument 486 acl_posix1e_acl_to_mode(struct acl *acl) argument 544 acl_posix1e_check(struct acl *acl) argument [all...] |
/freebsd-11-stable/sys/fs/ext2fs/ |
H A D | ext2_acl.h | 49 void ext2_sync_acl_from_inode(struct inode *ip, struct acl *acl);
|
/freebsd-11-stable/contrib/wpa/hostapd/ |
H A D | config_file.h | 17 int hostapd_add_acl_maclist(struct mac_acl_entry **acl, int *num, 19 void hostapd_remove_acl_mac(struct mac_acl_entry **acl, int *num,
|
/freebsd-11-stable/contrib/subversion/subversion/libsvn_repos/ |
H A D | authz_info.c | 36 svn_authz__acl_applies_to_repo(const authz_acl_t *acl, 41 return (0 == strcmp(acl->rule.repos, AUTHZ_ANY_REPOSITORY)) 42 || (0 == strcmp(repos, acl->rule.repos)); 47 const authz_acl_t *acl, 56 if (!svn_authz__acl_applies_to_repo(acl, repos)) 62 if (!acl->has_anon_access) 66 *access_p = acl->anon_access; 71 has_access = acl->has_authn_access; 72 access = (has_access ? acl->authn_access : authz_access_none); 75 for (i = 0; i < acl 35 svn_authz__acl_applies_to_repo(const authz_acl_t *acl, const char *repos) argument 45 svn_authz__get_acl_access(authz_access_t *access_p, const authz_acl_t *acl, const char *user, const char *repos) argument [all...] |
H A D | authz_parse.c | 50 authz_acl_t acl; member in struct:parsed_acl_t 117 /* Temporary parsed-acl definitions. */ 191 parsed_acl_t *acl = &APR_ARRAY_PUSH(cb->parsed_acls, parsed_acl_t); local 192 acl->acl.sequence_number = 0; 193 acl->acl.rule.repos = interned_empty_string; 194 acl->acl.rule.len = 0; 195 acl 716 parsed_acl_t acl; local 846 parsed_acl_t *const acl = cb->current_acl; local 1278 const authz_acl_t *const acl = baton; local 1300 authz_acl_t *const acl = &pacl->acl; local [all...] |
/freebsd-11-stable/contrib/libarchive/libarchive/ |
H A D | archive_disk_acl_freebsd.c | 43 #include <sys/acl.h> 107 struct archive_entry *entry, acl_t acl, int default_entry_acl_type) 127 if (acl_get_brand_np(acl, &brand) != 0) { 158 s = acl_get_entry(acl, ACL_FIRST_ENTRY, &acl_entry); 215 s = acl_get_entry(acl, ACL_NEXT_ENTRY, &acl_entry); 310 s = acl_get_entry(acl, ACL_NEXT_ENTRY, &acl_entry); 326 acl_t acl; local 374 acl = acl_init(entries); 375 if (acl == (acl_t)NULL) { 383 if (acl_create_entry(&acl, 106 translate_acl(struct archive_read_disk *a, struct archive_entry *entry, acl_t acl, int default_entry_acl_type) argument 577 acl_t acl; local [all...] |
/freebsd-11-stable/sys/sys/ |
H A D | acl.h | 76 #define NFS4_ACL_EXTATTR_NAME "nfs4.acl" 99 * Current "struct acl". 117 struct acl { struct 129 struct acl ats_acl; 158 * Possible valid values for ae_tag field. For explanation, see acl(9). 294 mode_t acl_posix1e_acl_to_mode(struct acl *acl); 296 struct acl *dacl); 297 struct acl *acl_alloc(int flags); 298 void acl_free(struct acl *acl [all...] |
/freebsd-11-stable/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...] |