Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 28) sorted by relevance

12

/security/tomoyo/
Dgc.c45 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 …]
Dmemory.c97 struct list_head *list; in tomoyo_get_group() local
107 list = &param->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()
Ddomain.c37 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 = &param->ns->policy_list[TOMOYO_ID_TRANSITION_CONTROL]; in tomoyo_write_transition_control()
[all …]
Dgroup.c77 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()
Dcommon.c849 .list = &tomoyo_kernel_namespace. in tomoyo_update_manager_entry()
899 list_entry(head->r.acl, typeof(*ptr), head.list); in tomoyo_read_manager()
936 policy_list[TOMOYO_ID_MANAGER], head.list) { in tomoyo_manager()
1004 head->r.domain = &domain->list; in tomoyo_select_domain()
1074 list_for_each_entry_rcu(domain, &tomoyo_domain_list, list) { in tomoyo_delete_domain()
1101 struct list_head *list, char *data, in tomoyo_write_domain2() argument
1106 .list = list, in tomoyo_write_domain2()
1559 struct list_head *list) in tomoyo_read_domain2() argument
1561 list_for_each_cookie(head->r.acl, list) { in tomoyo_read_domain2()
1563 list_entry(head->r.acl, typeof(*ptr), list); in tomoyo_read_domain2()
[all …]
Daudit.c299 struct list_head list; member
391 list_add_tail(&entry->list, &tomoyo_log); in tomoyo_write_log2()
441 ptr = list_entry(tomoyo_log.next, typeof(*ptr), list); in tomoyo_read_log()
442 list_del(&ptr->list); in tomoyo_read_log()
Dcommon.h403 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
Dcondition.c403 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/
Dnetport.c50 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()
246 INIT_LIST_HEAD(&sel_netport_hash[iter].list); in sel_netport_init()
Dnetnode.c51 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()
310 INIT_LIST_HEAD(&sel_netnode_hash[iter].list); in sel_netnode_init()
Dnetif.c36 struct list_head list; member
77 list_for_each_entry_rcu(netif, &sel_netif_hash[idx], list) in sel_netif_find()
102 list_add_rcu(&netif->list, &sel_netif_hash[idx]); in sel_netif_insert()
118 list_del_rcu(&netif->list); in sel_netif_destroy()
256 list_for_each_entry(netif, &sel_netif_hash[idx], list) in sel_netif_flush()
Davc.c57 struct hlist_node list; /* anchored in avc_cache->slots[i] */ member
218 hlist_for_each_entry_rcu(node, head, list) in avc_get_hash_stats()
494 hlist_del_rcu(&node->list); in avc_node_delete()
509 hlist_replace_rcu(&old->list, &new->list); in avc_node_replace()
531 hlist_for_each_entry(node, head, list) { in avc_reclaim_node()
556 INIT_HLIST_NODE(&node->list); in avc_alloc_node()
582 hlist_for_each_entry_rcu(node, head, list) { in avc_search_node()
688 hlist_for_each_entry(pos, head, list) { in avc_insert()
696 hlist_add_head_rcu(&node->list, head); in avc_insert()
849 hlist_for_each_entry(pos, head, list) { in avc_update_node()
[all …]
/security/smack/
Dsmackfs.c108 struct list_head list; member
207 list_for_each_entry_rcu(sp, rule_list, list) { in smk_set_access()
228 list_add_rcu(&sp->list, rule_list); in smk_set_access()
237 list_add_rcu(&smlp->list, &smack_rule_list); in smk_set_access()
536 struct list_head *list; in smk_seq_start() local
547 list = s->private; in smk_seq_start()
548 if (list_empty(list)) in smk_seq_start()
552 return list->next; in smk_seq_start()
553 return list; in smk_seq_start()
559 struct list_head *list = v; in smk_seq_next() local
[all …]
Dsmack.h80 struct list_head list; member
90 struct list_head list; member
120 struct list_head list; member
Dsmack_access.c94 list_for_each_entry_rcu(srp, rule_list, list) { in smk_access_entry()
338 list_for_each_entry_rcu(skp, &smack_known_list, list) { in smk_find_entry()
475 list_add_rcu(&skp->list, &smack_known_list); in smk_import_entry()
524 list_for_each_entry_rcu(skp, &smack_known_list, list) { in smack_from_secid()
Dsmack_lsm.c137 list_for_each_entry_rcu(orp, ohead, list) { in smk_copy_rules()
144 list_add_rcu(&nrp->list, nhead); in smk_copy_rules()
1214 list_for_each_entry_rcu(srp, &skp->smk_rules, list) { in smack_mmap_file()
1407 rp = list_entry(l, struct smack_rule, list); in smack_cred_free()
1408 list_del(&rp->list); in smack_cred_free()
1779 list_for_each_entry_rcu(snp, &smk_netlbladdr_list, list) in smack_host_label()
2839 list_for_each_entry(kp, &smack_known_list, list) { in smack_from_secattr()
3559 list_add(&smack_known_huh.list, &smack_known_list); in init_smack_known_list()
3560 list_add(&smack_known_hat.list, &smack_known_list); in init_smack_known_list()
3561 list_add(&smack_known_star.list, &smack_known_list); in init_smack_known_list()
[all …]
/security/selinux/ss/
Dconditional.c133 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 …]
Dconditional.h74 int cond_write_list(struct policydb *p, struct cond_node *list, void *fp);
/security/
Ddevice_cgroup.c44 struct list_head list; member
92 list_for_each_entry(ex, orig, list) { in dev_exceptions_copy()
96 list_add_tail(&new->list, dest); in dev_exceptions_copy()
102 list_for_each_entry_safe(ex, tmp, dest, list) { in dev_exceptions_copy()
103 list_del(&ex->list); in dev_exceptions_copy()
123 list_for_each_entry(walk, &dev_cgroup->exceptions, list) { in dev_exception_add()
137 list_add_tail_rcu(&excopy->list, &dev_cgroup->exceptions); in dev_exception_add()
151 list_for_each_entry_safe(walk, tmp, &dev_cgroup->exceptions, list) { in dev_exception_rm()
161 list_del_rcu(&walk->list); in dev_exception_rm()
171 list_for_each_entry_safe(ex, tmp, &dev_cgroup->exceptions, list) { in __dev_exception_clean()
[all …]
/security/apparmor/
Dpolicy.c143 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 …]
Ddomain.c151 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/
Dima_policy.c44 struct list_head list; member
141 list_for_each_entry_safe(entry, tmp, &ima_policy_rules, list) { in ima_lsm_update_rules()
268 list_for_each_entry(entry, ima_rules, list) { in ima_match_policy()
311 list_add_tail(&default_rules[i].list, in ima_init_policy()
316 list_add_tail(&default_appraise_rules[j].list, in ima_init_policy()
670 INIT_LIST_HEAD(&entry->list); in ima_parse_add_rule()
690 list_add_tail(&entry->list, &ima_policy_rules); in ima_parse_add_rule()
703 list_for_each_entry_safe(entry, tmp, &ima_policy_rules, list) { in ima_delete_rules()
707 list_del(&entry->list); in ima_delete_rules()
DKconfig17 Measurement Architecture(IMA) maintains a list of hash
24 an aggregate integrity value over this list inside the
39 measurement list. If unsure, use the default 10.
/security/selinux/include/
Dobjsec.h43 struct list_head list; /* list of inode_security_struct */ member
/security/apparmor/include/
Dpolicy.h84 struct list_head list; member

12