/security/tomoyo/ |
D | gc.c | 45 list_for_each_entry(head, &tomoyo_io_buffer_list, list) { in tomoyo_struct_used_by_io_buffer() 50 head->r.acl == element || &head->w.domain->list == element) in tomoyo_struct_used_by_io_buffer() 77 list_for_each_entry(head, &tomoyo_io_buffer_list, list) { in tomoyo_name_used_by_io_buffer() 109 container_of(element, typeof(*ptr), head.list); in tomoyo_del_transition_control() 124 container_of(element, typeof(*ptr), head.list); in tomoyo_del_aggregator() 139 container_of(element, typeof(*ptr), head.list); in tomoyo_del_manager() 153 container_of(element, typeof(*acl), list); in tomoyo_del_acl() 246 container_of(element, typeof(*domain), list); in tomoyo_del_domain() 254 list_for_each_entry_safe(acl, tmp, &domain->acl_info_list, list) { in tomoyo_del_domain() 255 tomoyo_del_acl(&acl->list); in tomoyo_del_domain() [all …]
|
D | memory.c | 97 struct list_head *list; in tomoyo_get_group() local 107 list = ¶m->ns->group_list[idx]; in tomoyo_get_group() 108 list_for_each_entry(group, list, head.list) { in tomoyo_get_group() 121 list_add_tail_rcu(&entry->head.list, list); in tomoyo_get_group() 161 list_for_each_entry(ptr, head, head.list) { in tomoyo_get_name() 174 list_add_tail(&ptr->head.list, head); in tomoyo_get_name() 200 list_add_tail_rcu(&tomoyo_kernel_domain.list, &tomoyo_domain_list); in tomoyo_mm_init()
|
D | domain.c | 37 struct list_head *list = param->list; in tomoyo_update_policy() local 41 list_for_each_entry_rcu(entry, list, list) { in tomoyo_update_policy() 53 list_add_tail_rcu(&entry->list, list); in tomoyo_update_policy() 101 struct list_head * const list = param->list; in tomoyo_update_domain() local 119 list_for_each_entry_rcu(entry, list, list) { in tomoyo_update_domain() 136 list_add_tail_rcu(&entry->list, list); in tomoyo_update_domain() 163 const struct list_head *list = &domain->acl_info_list; in tomoyo_check_acl() local 166 list_for_each_entry_rcu(ptr, list, list) { in tomoyo_check_acl() 179 list = &domain->ns->acl_group[domain->group]; in tomoyo_check_acl() 265 param->list = ¶m->ns->policy_list[TOMOYO_ID_TRANSITION_CONTROL]; in tomoyo_write_transition_control() [all …]
|
D | group.c | 77 param->list = &group->member_list; in tomoyo_write_group() 129 list_for_each_entry_rcu(member, &group->member_list, head.list) { in tomoyo_path_matches_group() 156 list_for_each_entry_rcu(member, &group->member_list, head.list) { in tomoyo_number_matches_group() 186 list_for_each_entry_rcu(member, &group->member_list, head.list) { in tomoyo_address_matches_group()
|
D | common.c | 849 .list = &tomoyo_kernel_namespace. in tomoyo_update_manager_entry() 904 list_entry(head->r.acl, typeof(*ptr), head.list); in tomoyo_read_manager() 936 policy_list[TOMOYO_ID_MANAGER], head.list) { in tomoyo_manager() 949 policy_list[TOMOYO_ID_MANAGER], head.list) { in tomoyo_manager() 1016 head->r.domain = &domain->list; in tomoyo_select_domain() 1086 list_for_each_entry_rcu(domain, &tomoyo_domain_list, list) { in tomoyo_delete_domain() 1113 struct list_head *list, char *data, in tomoyo_write_domain2() argument 1118 .list = list, in tomoyo_write_domain2() 1571 struct list_head *list) in tomoyo_read_domain2() argument 1573 list_for_each_cookie(head->r.acl, list) { in tomoyo_read_domain2() [all …]
|
D | audit.c | 290 struct list_head list; member 382 list_add_tail(&entry->list, &tomoyo_log); in tomoyo_write_log2() 432 ptr = list_entry(tomoyo_log.next, typeof(*ptr), list); in tomoyo_read_log() 433 list_del(&ptr->list); in tomoyo_read_log()
|
D | common.h | 403 struct list_head list; member 409 struct list_head list; member 669 struct list_head list; member 677 struct list_head list; member 777 struct list_head *list; member 837 struct list_head list; member
|
D | condition.c | 403 list_for_each_entry(ptr, &tomoyo_condition_list, head.list) { in tomoyo_commit_condition() 415 list_add(&entry->head.list, &tomoyo_condition_list); in tomoyo_commit_condition() 424 tomoyo_del_condition(&entry->head.list); in tomoyo_commit_condition() 678 tomoyo_del_condition(&entry->head.list); in tomoyo_get_condition()
|
/security/selinux/ |
D | netport.c | 50 struct list_head list; member 56 struct list_head list; member 100 list_for_each_entry_rcu(port, &sel_netport_hash[idx].list, list) in sel_netport_find() 122 list_add_rcu(&port->list, &sel_netport_hash[idx].list); in sel_netport_insert() 127 sel_netport_hash[idx].list.prev, in sel_netport_insert() 129 struct sel_netport, list); in sel_netport_insert() 130 list_del_rcu(&tail->list); in sel_netport_insert() 228 &sel_netport_hash[idx].list, list) { in sel_netport_flush() 229 list_del_rcu(&port->list); in sel_netport_flush() 256 INIT_LIST_HEAD(&sel_netport_hash[iter].list); in sel_netport_init()
|
D | netnode.c | 51 struct list_head list; member 57 struct list_head list; member 131 list_for_each_entry_rcu(node, &sel_netnode_hash[idx].list, list) in sel_netnode_find() 173 list_add_rcu(&node->list, &sel_netnode_hash[idx].list); in sel_netnode_insert() 177 rcu_dereference_protected(sel_netnode_hash[idx].list.prev, in sel_netnode_insert() 179 struct sel_netnode, list); in sel_netnode_insert() 180 list_del_rcu(&tail->list); in sel_netnode_insert() 292 &sel_netnode_hash[idx].list, list) { in sel_netnode_flush() 293 list_del_rcu(&node->list); in sel_netnode_flush() 320 INIT_LIST_HEAD(&sel_netnode_hash[iter].list); in sel_netnode_init()
|
D | netif.c | 36 struct list_head list; member 74 list_for_each_entry_rcu(netif, &sel_netif_hash[idx], list) in sel_netif_find() 100 list_add_rcu(&netif->list, &sel_netif_hash[idx]); in sel_netif_insert() 116 list_del_rcu(&netif->list); in sel_netif_destroy() 250 list_for_each_entry(netif, &sel_netif_hash[idx], list) in sel_netif_flush()
|
D | avc.c | 57 struct hlist_node list; /* anchored in avc_cache->slots[i] */ member 226 hlist_for_each_entry_rcu(node, next, head, list) in avc_get_hash_stats() 486 hlist_del_rcu(&node->list); in avc_node_delete() 501 hlist_replace_rcu(&old->list, &new->list); in avc_node_replace() 524 hlist_for_each_entry(node, next, head, list) { in avc_reclaim_node() 549 INIT_HLIST_NODE(&node->list); in avc_alloc_node() 576 hlist_for_each_entry_rcu(node, next, head, list) { in avc_search_node() 683 hlist_for_each_entry(pos, next, head, list) { in avc_insert() 691 hlist_add_head_rcu(&node->list, head); in avc_insert() 936 hlist_for_each_entry(pos, next, head, list) { in avc_update_node() [all …]
|
/security/ |
D | device_cgroup.c | 38 struct list_head list; member 81 list_for_each_entry(wh, orig, list) { in dev_whitelist_copy() 85 list_add_tail(&new->list, dest); in dev_whitelist_copy() 91 list_for_each_entry_safe(wh, tmp, dest, list) { in dev_whitelist_copy() 92 list_del(&wh->list); in dev_whitelist_copy() 111 list_for_each_entry(walk, &dev_cgroup->whitelist, list) { in dev_whitelist_add() 125 list_add_tail_rcu(&whcopy->list, &dev_cgroup->whitelist); in dev_whitelist_add() 137 list_for_each_entry_safe(walk, tmp, &dev_cgroup->whitelist, list) { in dev_whitelist_rm() 150 list_del_rcu(&walk->list); in dev_whitelist_rm() 181 list_add(&wh->list, &dev_cgroup->whitelist); in devcgroup_create() [all …]
|
/security/smack/ |
D | smackfs.c | 95 struct list_head list; member 174 list_for_each_entry_rcu(sp, rule_list, list) { in smk_set_access() 183 list_add_rcu(&srp->list, rule_list); in smk_set_access() 366 list_add_rcu(&smlp->list, &smack_rule_list); in smk_write_load_list() 386 struct list_head *list; in smk_seq_start() local 397 list = s->private; in smk_seq_start() 398 if (list_empty(list)) in smk_seq_start() 402 return list->next; in smk_seq_start() 403 return list; in smk_seq_start() 409 struct list_head *list = v; in smk_seq_next() local [all …]
|
D | smack_access.c | 100 list_for_each_entry_rcu(srp, rule_list, list) { in smk_access_entry() 347 list_for_each_entry_rcu(skp, &smack_known_list, list) { in smk_find_entry() 416 list_add_rcu(&skp->list, &smack_known_list); in smk_import_entry() 458 list_for_each_entry_rcu(skp, &smack_known_list, list) { in smack_from_secid() 485 list_for_each_entry_rcu(skp, &smack_known_list, list) { in smack_to_secid() 510 list_for_each_entry(kp, &smack_known_list, list) { in smack_from_cipso() 543 list_for_each_entry_rcu(kp, &smack_known_list, list) { in smack_to_cipso()
|
D | smack.h | 74 struct list_head list; member 93 struct list_head list; member 125 struct list_head list; member
|
D | smack_lsm.c | 131 list_for_each_entry_rcu(orp, ohead, list) { in smk_copy_rules() 138 list_add_rcu(&nrp->list, nhead); in smk_copy_rules() 1220 list_for_each_entry_rcu(srp, &skp->smk_rules, list) { in smack_file_mmap() 1413 rp = list_entry(l, struct smack_rule, list); in smack_cred_free() 1414 list_del(&rp->list); in smack_cred_free() 1805 list_for_each_entry_rcu(snp, &smk_netlbladdr_list, list) in smack_host_label() 3675 list_add(&smack_known_huh.list, &smack_known_list); in init_smack_known_list() 3676 list_add(&smack_known_hat.list, &smack_known_list); in init_smack_known_list() 3677 list_add(&smack_known_star.list, &smack_known_list); in init_smack_known_list() 3678 list_add(&smack_known_floor.list, &smack_known_list); in init_smack_known_list() [all …]
|
/security/selinux/ss/ |
D | conditional.c | 133 static void cond_av_list_destroy(struct cond_av_list *list) in cond_av_list_destroy() argument 136 for (cur = list; cur; cur = next) { in cond_av_list_destroy() 156 static void cond_list_destroy(struct cond_node *list) in cond_list_destroy() argument 160 if (list == NULL) in cond_list_destroy() 163 for (cur = list; cur; cur = next) { in cond_list_destroy() 275 struct cond_av_list *other = data->other, *list, *cur; in cond_insertf() local 332 list = kzalloc(sizeof(struct cond_av_list), GFP_KERNEL); in cond_insertf() 333 if (!list) { in cond_insertf() 338 list->node = node_ptr; in cond_insertf() 340 data->head = list; in cond_insertf() [all …]
|
D | conditional.h | 74 int cond_write_list(struct policydb *p, struct cond_node *list, void *fp);
|
/security/apparmor/ |
D | policy.c | 143 INIT_LIST_HEAD(&policy->list); in policy_init() 163 if (!list_empty(&policy->list)) { in policy_destroy() 186 list_for_each_entry(policy, head, list) { in __policy_find() 211 list_for_each_entry(policy, head, list) { in __policy_strn_find() 421 list_add(&new_ns->base.list, &root->sub_ns); in aa_prepare_namespace() 447 static void __list_add_profile(struct list_head *list, in __list_add_profile() argument 450 list_add(&profile->base.list, list); in __list_add_profile() 469 list_del_init(&profile->base.list); in __list_remove_profile() 503 list_for_each_entry_safe(child, tmp, &old->base.profiles, base.list) { in __replace_profile() 507 list_move(&child->base.list, &new->base.profiles); in __replace_profile() [all …]
|
D | domain.c | 151 list_for_each_entry(profile, head, base.list) { in __attach_match() 180 struct list_head *list, const char *name) in find_attach() argument 185 profile = aa_get_profile(__attach_match(name, list)); in find_attach()
|
/security/integrity/ima/ |
D | ima_policy.c | 36 struct list_head list; member 168 list_for_each_entry(entry, ima_measure, list) { in ima_match_policy() 195 list_add_tail(&default_rules[i].list, &measure_default_rules); in ima_init_policy() 456 INIT_LIST_HEAD(&entry->list); in ima_parse_add_rule() 476 list_add_tail(&entry->list, &measure_policy_rules); in ima_parse_add_rule() 488 list_for_each_entry_safe(entry, tmp, &measure_policy_rules, list) { in ima_delete_rules() 489 list_del(&entry->list); in ima_delete_rules()
|
D | Kconfig | 16 Measurement Architecture(IMA) maintains a list of hash 23 an aggregate integrity value over this list inside the 38 measurement list. If unsure, use the default 10.
|
/security/selinux/include/ |
D | objsec.h | 42 struct list_head list; /* list of inode_security_struct */ member
|
/security/apparmor/include/ |
D | policy.h | 84 struct list_head list; member
|