Home
last modified time | relevance | path

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

12

/security/integrity/platform_certs/
Defi_parser.c49 efi_signature_list_t list; in parse_efi_signature_list() local
52 if (size < sizeof(list)) in parse_efi_signature_list()
55 memcpy(&list, data, sizeof(list)); in parse_efi_signature_list()
58 list.signature_type.b, list.signature_list_size, in parse_efi_signature_list()
59 list.signature_header_size, list.signature_size); in parse_efi_signature_list()
61 lsize = list.signature_list_size; in parse_efi_signature_list()
62 hsize = list.signature_header_size; in parse_efi_signature_list()
63 esize = list.signature_size; in parse_efi_signature_list()
64 elsize = lsize - sizeof(list) - hsize; in parse_efi_signature_list()
72 if (lsize < sizeof(list) || in parse_efi_signature_list()
[all …]
/security/tomoyo/
Dgc.c46 list_for_each_entry(head, &tomoyo_io_buffer_list, list) { in tomoyo_struct_used_by_io_buffer()
51 head->r.acl == element || &head->w.domain->list == element) in tomoyo_struct_used_by_io_buffer()
78 list_for_each_entry(head, &tomoyo_io_buffer_list, list) { in tomoyo_name_used_by_io_buffer()
112 container_of(element, typeof(*ptr), head.list); in tomoyo_del_transition_control()
128 container_of(element, typeof(*ptr), head.list); in tomoyo_del_aggregator()
144 container_of(element, typeof(*ptr), head.list); in tomoyo_del_manager()
159 container_of(element, typeof(*acl), list); in tomoyo_del_acl()
254 container_of(element, typeof(*domain), list); in tomoyo_del_domain()
263 list_for_each_entry_safe(acl, tmp, &domain->acl_info_list, list) { in tomoyo_del_domain()
264 tomoyo_del_acl(&acl->list); in tomoyo_del_domain()
[all …]
Ddomain.c40 struct list_head *list = param->list; in tomoyo_update_policy() local
44 list_for_each_entry_rcu(entry, list, list, in tomoyo_update_policy()
57 list_add_tail_rcu(&entry->list, list); in tomoyo_update_policy()
105 struct list_head * const list = param->list; in tomoyo_update_domain() local
123 list_for_each_entry_rcu(entry, list, list, in tomoyo_update_domain()
141 list_add_tail_rcu(&entry->list, list); in tomoyo_update_domain()
167 const struct list_head *list = &domain->acl_info_list; in tomoyo_check_acl() local
171 list_for_each_entry_rcu(ptr, list, list, in tomoyo_check_acl()
186 list = &domain->ns->acl_group[i++]; in tomoyo_check_acl()
275 param->list = &param->ns->policy_list[TOMOYO_ID_TRANSITION_CONTROL]; in tomoyo_write_transition_control()
[all …]
Dmemory.c100 struct list_head *list; in tomoyo_get_group() local
111 list = &param->ns->group_list[idx]; in tomoyo_get_group()
112 list_for_each_entry(group, list, head.list) { in tomoyo_get_group()
126 list_add_tail_rcu(&entry->head.list, list); in tomoyo_get_group()
166 list_for_each_entry(ptr, head, head.list) { in tomoyo_get_name()
179 list_add_tail(&ptr->head.list, head); in tomoyo_get_name()
206 list_add_tail_rcu(&tomoyo_kernel_domain.list, &tomoyo_domain_list); in tomoyo_mm_init()
Dgroup.c81 param->list = &group->member_list; in tomoyo_write_group()
136 list_for_each_entry_rcu(member, &group->member_list, head.list, in tomoyo_path_matches_group()
165 list_for_each_entry_rcu(member, &group->member_list, head.list, in tomoyo_number_matches_group()
196 list_for_each_entry_rcu(member, &group->member_list, head.list, in tomoyo_address_matches_group()
Dcommon.c868 .list = &tomoyo_kernel_namespace.policy_list[TOMOYO_ID_MANAGER], in tomoyo_update_manager_entry()
917 list_entry(head->r.acl, typeof(*ptr), head.list); in tomoyo_read_manager()
954 list_for_each_entry_rcu(ptr, &tomoyo_kernel_namespace.policy_list[TOMOYO_ID_MANAGER], head.list, in tomoyo_manager()
1026 head->r.domain = &domain->list; in tomoyo_select_domain()
1099 list_for_each_entry_rcu(domain, &tomoyo_domain_list, list, in tomoyo_delete_domain()
1127 struct list_head *list, char *data, in tomoyo_write_domain2() argument
1132 .list = list, in tomoyo_write_domain2()
1598 struct list_head *list) in tomoyo_read_domain2() argument
1600 list_for_each_cookie(head->r.acl, list) { in tomoyo_read_domain2()
1602 list_entry(head->r.acl, typeof(*ptr), list); in tomoyo_read_domain2()
[all …]
/security/selinux/
Dnetport.c40 struct list_head list; member
46 struct list_head list; member
90 list_for_each_entry_rcu(port, &sel_netport_hash[idx].list, list) in sel_netport_find()
112 list_add_rcu(&port->list, &sel_netport_hash[idx].list); in sel_netport_insert()
117 sel_netport_hash[idx].list.prev, in sel_netport_insert()
119 struct sel_netport, list); in sel_netport_insert()
120 list_del_rcu(&tail->list); in sel_netport_insert()
215 &sel_netport_hash[idx].list, list) { in sel_netport_flush()
216 list_del_rcu(&port->list); in sel_netport_flush()
232 INIT_LIST_HEAD(&sel_netport_hash[iter].list); in sel_netport_init()
Dibpkey.c34 struct list_head list; member
39 struct list_head list; member
77 list_for_each_entry_rcu(pkey, &sel_ib_pkey_hash[idx].list, list) { in sel_ib_pkey_find()
102 list_add_rcu(&pkey->list, &sel_ib_pkey_hash[idx].list); in sel_ib_pkey_insert()
108 sel_ib_pkey_hash[idx].list.prev, in sel_ib_pkey_insert()
110 struct sel_ib_pkey, list); in sel_ib_pkey_insert()
111 list_del_rcu(&tail->list); in sel_ib_pkey_insert()
212 &sel_ib_pkey_hash[idx].list, list) { in sel_ib_pkey_flush()
213 list_del_rcu(&pkey->list); in sel_ib_pkey_flush()
229 INIT_LIST_HEAD(&sel_ib_pkey_hash[iter].list); in sel_ib_pkey_init()
Dnetnode.c41 struct list_head list; member
47 struct list_head list; member
121 list_for_each_entry_rcu(node, &sel_netnode_hash[idx].list, list) in sel_netnode_find()
164 list_add_rcu(&node->list, &sel_netnode_hash[idx].list); in sel_netnode_insert()
168 rcu_dereference_protected(sel_netnode_hash[idx].list.prev, in sel_netnode_insert()
170 struct sel_netnode, list); in sel_netnode_insert()
171 list_del_rcu(&tail->list); in sel_netnode_insert()
281 &sel_netnode_hash[idx].list, list) { in sel_netnode_flush()
282 list_del_rcu(&node->list); in sel_netnode_flush()
298 INIT_LIST_HEAD(&sel_netnode_hash[iter].list); in sel_netnode_init()
Dnetif.c33 struct list_head list; member
74 list_for_each_entry_rcu(netif, &sel_netif_hash[idx], list) in sel_netif_find()
99 list_add_rcu(&netif->list, &sel_netif_hash[idx]); in sel_netif_insert()
115 list_del_rcu(&netif->list); in sel_netif_destroy()
245 list_for_each_entry(netif, &sel_netif_hash[idx], list) in sel_netif_flush()
Davc.c54 struct hlist_node list; /* anchored in avc_cache->slots[i] */ member
165 hlist_for_each_entry_rcu(node, head, list) in avc_get_hash_stats()
440 hlist_del_rcu(&node->list); in avc_node_delete()
456 hlist_replace_rcu(&old->list, &new->list); in avc_node_replace()
479 hlist_for_each_entry(node, head, list) { in avc_reclaim_node()
504 INIT_HLIST_NODE(&node->list); in avc_alloc_node()
532 hlist_for_each_entry_rcu(node, head, list) { in avc_search_node()
641 hlist_for_each_entry(pos, head, list) { in avc_insert()
649 hlist_add_head_rcu(&node->list, head); in avc_insert()
885 hlist_for_each_entry(pos, head, list) { in avc_update_node()
[all …]
/security/smack/
Dsmackfs.c225 list_for_each_entry_rcu(sp, rule_list, list) { in smk_set_access()
246 list_add_rcu(&sp->list, rule_list); in smk_set_access()
534 struct list_head *list; in smk_seq_start() local
538 for (list = rcu_dereference(list_next_rcu(head)); in smk_seq_start()
539 list != head; in smk_seq_start()
540 list = rcu_dereference(list_next_rcu(list))) { in smk_seq_start()
542 return list; in smk_seq_start()
551 struct list_head *list = v; in smk_seq_next() local
554 list = rcu_dereference(list_next_rcu(list)); in smk_seq_next()
556 return (list == head) ? NULL : list; in smk_seq_next()
[all …]
Dsmack.h67 struct list_head list; member
134 struct list_head list; member
144 struct list_head list; member
156 struct list_head list; member
169 struct list_head list; member
180 struct list_head list; member
313 void smk_destroy_label_list(struct list_head *list);
Dsmack_access.c87 list_for_each_entry_rcu(srp, rule_list, list) { in smk_access_entry()
411 list_add_rcu(&skp->list, &smack_known_list); in smk_insert_entry()
597 list_for_each_entry_rcu(skp, &smack_known_list, list) { in smack_from_secid()
649 list_for_each_entry_rcu(sklep, &smack_onlycap_list, list) { in smack_privileged_cred()
/security/selinux/ss/
Dconditional.c131 static void cond_av_list_destroy(struct cond_av_list *list) in cond_av_list_destroy() argument
134 for (cur = list; cur; cur = next) { in cond_av_list_destroy()
154 static void cond_list_destroy(struct cond_node *list) in cond_list_destroy() argument
158 if (list == NULL) in cond_list_destroy()
161 for (cur = list; cur; cur = next) { in cond_list_destroy()
272 struct cond_av_list *other = data->other, *list, *cur; in cond_insertf() local
329 list = kzalloc(sizeof(*list), GFP_KERNEL); in cond_insertf()
330 if (!list) { in cond_insertf()
335 list->node = node_ptr; in cond_insertf()
337 data->head = list; in cond_insertf()
[all …]
Dsidtab.c46 hash_for_each_possible_rcu(s->context_to_sid, entry, list, in context_to_sid()
81 hash_add(s->context_to_sid, &entry->leaf.list, context->hash); in sidtab_set_initial()
98 hash_for_each_rcu(sidtab->context_to_sid, i, entry, list) { in sidtab_hash_stats()
301 &dst_convert->list, dst_convert->context.hash); in sidtab_context_to_sid()
312 hash_add_rcu(s->context_to_sid, &dst->list, dst->context.hash); in sidtab_context_to_sid()
329 hash_add_rcu(s->context_to_sid, &entry->list, in sidtab_convert_hashtable()
/security/
Ddevice_cgroup.c36 struct list_head list; member
65 list_for_each_entry(ex, orig, list) { in dev_exceptions_copy()
69 list_add_tail(&new->list, dest); in dev_exceptions_copy()
75 list_for_each_entry_safe(ex, tmp, dest, list) { in dev_exceptions_copy()
76 list_del(&ex->list); in dev_exceptions_copy()
96 list_for_each_entry(walk, &dev_cgroup->exceptions, list) { in dev_exception_add()
110 list_add_tail_rcu(&excopy->list, &dev_cgroup->exceptions); in dev_exception_add()
124 list_for_each_entry_safe(walk, tmp, &dev_cgroup->exceptions, list) { in dev_exception_rm()
134 list_del_rcu(&walk->list); in dev_exception_rm()
144 list_for_each_entry_safe(ex, tmp, &dev_cgroup->exceptions, list) { in __dev_exception_clean()
[all …]
/security/apparmor/
Dpolicy.c109 static void __add_profile(struct list_head *list, struct aa_profile *profile) in __add_profile() argument
113 AA_BUG(!list); in __add_profile()
118 list_add_rcu(&profile->base.list, list); in __add_profile()
144 list_del_rcu(&profile->base.list); in __list_remove_profile()
177 list_for_each_entry_safe(profile, tmp, head, base.list) in __aa_profile_list_release()
716 list_for_each_entry(ent, lh, list) { in __list_lookup_parent()
748 list_for_each_entry_safe(child, tmp, &lh, base.list) { in __replace_profile()
751 list_del_init(&child->base.list); in __replace_profile()
764 list_add_rcu(&child->base.list, &new->base.profiles); in __replace_profile()
777 if (list_empty(&new->base.list)) { in __replace_profile()
[all …]
Dapparmorfs.c1341 list_del_init(&rawdata->list); in __aa_fs_remove_rawdata()
1399 list_add(&rawdata->list, &ns->rawdata_list); in __aa_fs_create_rawdata()
1424 list_for_each_entry(child, &profile->base.profiles, base.list) in __aafs_profile_rmdir()
1672 list_for_each_entry(child, &profile->base.profiles, base.list) { in __aafs_profile_mkdir()
1792 list_for_each_entry_safe(ent, tmp, &ns->rawdata_list, list) in __aa_fs_list_remove_rawdata()
1810 list_for_each_entry(child, &ns->base.profiles, base.list) in __aafs_ns_rmdir()
1813 list_for_each_entry(sub, &ns->sub_ns, base.list) { in __aafs_ns_rmdir()
1936 list_for_each_entry(child, &ns->base.profiles, base.list) { in __aafs_ns_mkdir()
1943 list_for_each_entry(sub, &ns->sub_ns, base.list) { in __aafs_ns_mkdir()
1987 next = list_first_entry(&ns->sub_ns, typeof(*ns), base.list); in __next_ns()
[all …]
Dpolicy_ns.c266 list_add_rcu(&ns->base.list, &parent->sub_ns); in __aa_create_ns()
363 list_del_rcu(&ns->base.list); in __aa_remove_ns()
378 list_for_each_entry_safe(ns, tmp, head, base.list) in __ns_list_release()
/security/integrity/ima/
Dima_policy.c64 struct list_head list; member
312 list_replace_rcu(&entry->list, &nentry->list); in ima_lsm_update_rule()
329 list_for_each_entry_safe(entry, e, &ima_policy_rules, list) { in ima_lsm_update_rules()
501 list_for_each_entry_rcu(entry, ima_rules, list) { in ima_match_policy()
549 list_for_each_entry(entry, ima_rules, list) { in ima_update_policy_flag()
581 list_add_tail(&entries[i].list, &ima_default_rules); in add_rules()
589 list_add_tail(&entry->list, &ima_policy_rules); in add_rules()
628 INIT_LIST_HEAD(&arch_policy_entry[i].list); in ima_init_arch_policy()
1265 INIT_LIST_HEAD(&entry->list); in ima_parse_add_rule()
1276 list_add_tail(&entry->list, &ima_temp_rules); in ima_parse_add_rule()
[all …]
DKconfig19 Measurement Architecture(IMA) maintains a list of hash
26 an aggregate integrity value over this list inside the
34 bool "Enable carrying the IMA measurement list across a soft boot"
39 a TPM's quote after a soft boot, the IMA measurement list of the
42 Depending on the IMA policy, the measurement list can grow to
53 measurement list. If unsure, use the default 10.
69 The original 'ima' measurement list template contains a
71 limited to 255 characters. The 'ima-ng' measurement list
96 list, integrity appraisal and audit log. The compiled default
/security/integrity/evm/
Devm_secfs.c143 list_for_each_entry(xattr, &evm_config_xattrnames, list) in evm_read_xattrs()
152 list_for_each_entry(xattr, &evm_config_xattrnames, list) { in evm_read_xattrs()
239 list_for_each_entry(tmp, &evm_config_xattrnames, list) { in evm_write_xattrs()
246 list_add_tail_rcu(&xattr->list, &evm_config_xattrnames); in evm_write_xattrs()
/security/apparmor/include/
Dpolicy_unpack.h20 struct list_head list; member
59 struct list_head list; member
Dlib.h131 struct list_head list; member
166 list_for_each_entry_rcu(policy, head, list) { in __policy_find()
191 list_for_each_entry_rcu(policy, head, list) { in __policy_strn_find()

12