Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 48) 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()
214 &sel_ib_pkey_hash[idx].list, list) { in sel_ib_pkey_flush()
215 list_del_rcu(&pkey->list); in sel_ib_pkey_flush()
231 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.c60 struct hlist_node list; /* anchored in avc_cache->slots[i] */ member
171 hlist_for_each_entry_rcu(node, head, list) in avc_get_hash_stats()
448 hlist_del_rcu(&node->list); in avc_node_delete()
465 hlist_replace_rcu(&old->list, &new->list); in avc_node_replace()
488 hlist_for_each_entry(node, head, list) { in avc_reclaim_node()
513 INIT_HLIST_NODE(&node->list); in avc_alloc_node()
541 hlist_for_each_entry_rcu(node, head, list) { in avc_search_node()
651 hlist_for_each_entry(pos, head, list) { in avc_insert()
659 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
138 struct list_head list; member
148 struct list_head list; member
159 struct list_head list; member
170 struct list_head list; member
180 struct list_head list; member
300 void smk_destroy_label_list(struct list_head *list);
/security/
Ddevice_cgroup.c38 struct list_head list; member
67 list_for_each_entry(ex, orig, list) { in dev_exceptions_copy()
71 list_add_tail(&new->list, dest); in dev_exceptions_copy()
77 list_for_each_entry_safe(ex, tmp, dest, list) { in dev_exceptions_copy()
78 list_del(&ex->list); in dev_exceptions_copy()
90 list_for_each_entry_safe(ex, tmp, orig, list) { in dev_exceptions_move()
91 list_move_tail(&ex->list, dest); in dev_exceptions_move()
109 list_for_each_entry(walk, &dev_cgroup->exceptions, list) { in dev_exception_add()
123 list_add_tail_rcu(&excopy->list, &dev_cgroup->exceptions); in dev_exception_add()
137 list_for_each_entry_safe(walk, tmp, &dev_cgroup->exceptions, list) { in dev_exception_rm()
[all …]
Dsecurity.c332 struct hlist_head *list = (struct hlist_head *) &security_hook_heads; in early_security_init() local
337 INIT_HLIST_HEAD(&list[i]); in early_security_init()
399 static bool match_last_lsm(const char *list, const char *lsm) in match_last_lsm() argument
403 if (WARN_ON(!list || !lsm)) in match_last_lsm()
405 last = strrchr(list, ','); in match_last_lsm()
410 last = list; in match_last_lsm()
450 hlist_add_tail_rcu(&hooks[i].list, hooks[i].head); in security_add_hooks()
672 hlist_for_each_entry(P, &security_hook_heads.FUNC, list) \
681 hlist_for_each_entry(P, &security_hook_heads.FUNC, list) { \
784 hlist_for_each_entry(hp, &security_hook_heads.vm_enough_memory, list) { in security_vm_enough_memory_mm()
[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()
717 list_for_each_entry(ent, lh, list) { in __list_lookup_parent()
749 list_for_each_entry_safe(child, tmp, &lh, base.list) { in __replace_profile()
752 list_del_init(&child->base.list); in __replace_profile()
765 list_add_rcu(&child->base.list, &new->base.profiles); in __replace_profile()
778 if (list_empty(&new->base.list)) { in __replace_profile()
[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_queue_keys.c88 INIT_LIST_HEAD(&entry->list); in ima_alloc_key_entry()
115 list_add_tail(&entry->list, &ima_keys); in ima_queue_key()
159 list_for_each_entry_safe(entry, tmp, &ima_keys, list) { in ima_process_queued_keys()
166 list_del(&entry->list); in ima_process_queued_keys()
DKconfig18 Measurement Architecture(IMA) maintains a list of hash
25 an aggregate integrity value over this list inside the
35 bool "Enable carrying the IMA measurement list across a soft boot"
40 a TPM's quote after a soft boot, the IMA measurement list of the
43 Depending on the IMA policy, the measurement list can grow to
53 measurement list. If unsure, use the default 10.
68 The original 'ima' measurement list template contains a
70 limited to 255 characters. The 'ima-ng' measurement list
91 list, integrity appraisal and audit log. The compiled default
Dima_policy.c69 struct list_head list; member
393 list_replace_rcu(&entry->list, &nentry->list); in ima_lsm_update_rule()
429 list_for_each_entry_safe(entry, e, &ima_policy_rules, list) { in ima_lsm_update_rules()
656 list_for_each_entry_rcu(entry, ima_rules, list) { in ima_match_policy()
705 list_for_each_entry(entry, ima_rules, list) { in ima_update_policy_flag()
737 list_add_tail(&entries[i].list, &ima_default_rules); in add_rules()
745 list_add_tail(&entry->list, &ima_policy_rules); in add_rules()
787 INIT_LIST_HEAD(&arch_policy_entry[i].list); in ima_init_arch_policy()
1546 INIT_LIST_HEAD(&entry->list); in ima_parse_add_rule()
1557 list_add_tail(&entry->list, &ima_temp_rules); in ima_parse_add_rule()
[all …]
/security/selinux/ss/
Dconditional.c324 struct cond_av_list *list, in cond_read_av_list() argument
340 list->nodes = kcalloc(len, sizeof(*list->nodes), GFP_KERNEL); in cond_read_av_list()
341 if (!list->nodes) in cond_read_av_list()
347 data.dst = &list->nodes[i]; in cond_read_av_list()
351 kfree(list->nodes); in cond_read_av_list()
352 list->nodes = NULL; in cond_read_av_list()
357 list->len = len; in cond_read_av_list()
481 struct cond_av_list *list, struct policy_file *fp) in cond_write_av_list() argument
487 buf[0] = cpu_to_le32(list->len); in cond_write_av_list()
492 for (i = 0; i < list->len; i++) { in cond_write_av_list()
[all …]
Dsidtab.c64 hash_for_each_possible_rcu(s->context_to_sid, entry, list, hash) { in context_to_sid()
107 hash_add(s->context_to_sid, &isid->entry.list, hash); in sidtab_set_initial()
124 hash_for_each_rcu(sidtab->context_to_sid, i, entry, list) { in sidtab_hash_stats()
338 &dst_convert->list, dst_convert->hash); in sidtab_context_to_sid()
349 hash_add_rcu(s->context_to_sid, &dst->list, dst->hash); in sidtab_context_to_sid()
367 hash_add_rcu(s->context_to_sid, &entry->list, entry->hash); in sidtab_convert_hashtable()
/security/integrity/evm/
Devm_secfs.c142 list_for_each_entry(xattr, &evm_config_xattrnames, list) in evm_read_xattrs()
151 list_for_each_entry(xattr, &evm_config_xattrnames, list) { in evm_read_xattrs()
245 list_for_each_entry(tmp, &evm_config_xattrnames, list) { in evm_write_xattrs()
252 list_add_tail_rcu(&xattr->list, &evm_config_xattrnames); in evm_write_xattrs()
/security/apparmor/include/
Dpolicy_unpack.h20 struct list_head list; member
60 struct list_head list; member
Dlib.h136 struct list_head list; member
171 list_for_each_entry_rcu(policy, head, list) { in __policy_find()
196 list_for_each_entry_rcu(policy, head, list) { in __policy_strn_find()

12