Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 24 of 24) sorted by relevance

/security/selinux/ss/
Dhashtab.c138 struct hashtab_node *cur, *tmp, *tail; in hashtab_duplicate() local
152 tmp = kmem_cache_zalloc(hashtab_node_cachep, in hashtab_duplicate()
154 if (!tmp) in hashtab_duplicate()
156 rc = copy(tmp, cur, args); in hashtab_duplicate()
158 kmem_cache_free(hashtab_node_cachep, tmp); in hashtab_duplicate()
161 tmp->next = NULL; in hashtab_duplicate()
163 new->htable[i] = tmp; in hashtab_duplicate()
165 tail->next = tmp; in hashtab_duplicate()
166 tail = tmp; in hashtab_duplicate()
175 for (cur = new->htable[i]; cur; cur = tmp) { in hashtab_duplicate()
[all …]
Debitmap.c426 struct ebitmap_node *tmp; in ebitmap_read() local
427 tmp = kmem_cache_zalloc(ebitmap_node_cachep, GFP_KERNEL); in ebitmap_read()
428 if (!tmp) { in ebitmap_read()
434 tmp->startbit = startbit - (startbit % EBITMAP_SIZE); in ebitmap_read()
436 n->next = tmp; in ebitmap_read()
438 e->node = tmp; in ebitmap_read()
439 n = tmp; in ebitmap_read()
/security/tomoyo/
Dgc.c256 struct tomoyo_acl_info *tmp; in tomoyo_del_domain() local
263 list_for_each_entry_safe(acl, tmp, &domain->acl_info_list, list) { in tomoyo_del_domain()
489 struct tomoyo_acl_head *tmp; in tomoyo_collect_member() local
491 list_for_each_entry_safe(member, tmp, member_list, list) { in tomoyo_collect_member()
509 struct tomoyo_acl_info *tmp; in tomoyo_collect_acl() local
511 list_for_each_entry_safe(acl, tmp, list, list) { in tomoyo_collect_acl()
533 struct tomoyo_domain_info *tmp; in tomoyo_collect_entry() local
535 list_for_each_entry_safe(domain, tmp, &tomoyo_domain_list, in tomoyo_collect_entry()
551 struct tomoyo_shared_acl_head *tmp; in tomoyo_collect_entry() local
553 list_for_each_entry_safe(ptr, tmp, &tomoyo_condition_list, in tomoyo_collect_entry()
[all …]
Ddomain.c714 ee->tmp = kzalloc(TOMOYO_EXEC_TMPSIZE, GFP_NOFS); in tomoyo_find_next_domain()
715 if (!ee->tmp) { in tomoyo_find_next_domain()
787 strncpy(ee->tmp, old_domain->domainname->name, in tomoyo_find_next_domain()
789 cp = strrchr(ee->tmp, ' '); in tomoyo_find_next_domain()
793 strncpy(ee->tmp, domainname, TOMOYO_EXEC_TMPSIZE - 1); in tomoyo_find_next_domain()
795 snprintf(ee->tmp, TOMOYO_EXEC_TMPSIZE - 1, "%s %s", in tomoyo_find_next_domain()
808 snprintf(ee->tmp, TOMOYO_EXEC_TMPSIZE - 1, "<%s>", in tomoyo_find_next_domain()
819 snprintf(ee->tmp, TOMOYO_EXEC_TMPSIZE - 1, "%s %s", in tomoyo_find_next_domain()
841 snprintf(ee->tmp, TOMOYO_EXEC_TMPSIZE - 1, "%s %s", in tomoyo_find_next_domain()
847 domain = tomoyo_assign_domain(ee->tmp, true); in tomoyo_find_next_domain()
[all …]
Dutil.c387 char *tmp = *src; in tomoyo_str_starts() local
389 if (strncmp(tmp, find, len)) in tomoyo_str_starts()
391 tmp += len; in tomoyo_str_starts()
392 *src = tmp; in tomoyo_str_starts()
Dcommon.c2204 struct list_head *tmp; in tomoyo_read_query() local
2214 list_for_each(tmp, &tomoyo_query_list) { in tomoyo_read_query()
2215 struct tomoyo_query *ptr = list_entry(tmp, typeof(*ptr), list); in tomoyo_read_query()
2232 list_for_each(tmp, &tomoyo_query_list) { in tomoyo_read_query()
2233 struct tomoyo_query *ptr = list_entry(tmp, typeof(*ptr), list); in tomoyo_read_query()
2266 struct list_head *tmp; in tomoyo_write_answer() local
2271 list_for_each(tmp, &tomoyo_query_list) { in tomoyo_write_answer()
2272 struct tomoyo_query *ptr = list_entry(tmp, typeof(*ptr), list); in tomoyo_write_answer()
2280 list_for_each(tmp, &tomoyo_query_list) { in tomoyo_write_answer()
2281 struct tomoyo_query *ptr = list_entry(tmp, typeof(*ptr), list); in tomoyo_write_answer()
Dcommon.h629 char *tmp; /* Size is TOMOYO_EXEC_TMPSIZE bytes */ member
Dcondition.c111 char *arg_ptr = ee->tmp; in tomoyo_scan_bprm()
/security/apparmor/include/
Dpolicy_unpack.h110 struct aa_loaddata *tmp = __aa_get_loaddata(data); in aa_get_loaddata() local
112 AA_BUG(data && !tmp); in aa_get_loaddata()
114 return tmp; in aa_get_loaddata()
Dlabel.h425 struct aa_label *tmp; in aa_get_newest_label() local
433 tmp = aa_get_label_rcu(&l->proxy->label); in aa_get_newest_label()
434 AA_BUG(!tmp); in aa_get_newest_label()
436 return tmp; in aa_get_newest_label()
/security/apparmor/
Dpolicy_unpack.c418 const char *tmp; in unpack_strdup() local
420 int res = unpack_str(e, &tmp, name); in unpack_strdup()
426 *string = kmemdup(tmp, res, GFP_KERNEL); in unpack_strdup()
626 u32 tmp = 0; in unpack_rlimits() local
627 if (!unpack_u32(e, &tmp, NULL)) in unpack_rlimits()
629 profile->rlimits.mask = tmp; in unpack_rlimits()
685 u32 tmp; in unpack_profile() local
731 if (!unpack_u32(e, &tmp, NULL)) { in unpack_profile()
735 profile->xmatch_len = tmp; in unpack_profile()
747 if (!unpack_u32(e, &tmp, NULL)) in unpack_profile()
[all …]
Dpolicy.c176 struct aa_profile *profile, *tmp; in __aa_profile_list_release() local
177 list_for_each_entry_safe(profile, tmp, head, base.list) in __aa_profile_list_release()
743 struct aa_profile *child, *tmp; in __replace_profile() local
749 list_for_each_entry_safe(child, tmp, &lh, base.list) { in __replace_profile()
862 struct aa_load_ent *ent, *tmp; in aa_replace_profiles() local
917 struct aa_loaddata *tmp; in aa_replace_profiles() local
919 tmp = __aa_get_loaddata(rawdata_ent); in aa_replace_profiles()
921 if (tmp) { in aa_replace_profiles()
923 udata = tmp; in aa_replace_profiles()
1001 list_for_each_entry_safe(ent, tmp, &lh, list) { in aa_replace_profiles()
[all …]
Dtask.c60 struct aa_label *tmp = ctx->nnp; in aa_replace_current_label() local
62 ctx->nnp = aa_get_newest_label(tmp); in aa_replace_current_label()
63 aa_put_label(tmp); in aa_replace_current_label()
Dlabel.c75 struct aa_label *tmp; in __aa_proxy_redirect() local
81 tmp = rcu_dereference_protected(orig->proxy->label, in __aa_proxy_redirect()
85 aa_put_label(tmp); in __aa_proxy_redirect()
278 struct aa_profile *tmp = vec[i]; in aa_vec_unique() local
282 int res = profile_cmp(vec[pos], tmp); in aa_vec_unique()
286 aa_put_profile(tmp); in aa_vec_unique()
297 vec[pos] = tmp; in aa_vec_unique()
1366 struct aa_perms tmp; in label_components_match() local
1383 aa_compute_perms(profile->policy.dfa, state, &tmp); in label_components_match()
1384 aa_apply_modes_to_perms(profile, &tmp); in label_components_match()
[all …]
Ddomain.c201 struct aa_perms tmp; in label_components_match() local
219 tmp = aa_compute_fperms(profile->file.dfa, state, &cond); in label_components_match()
220 aa_apply_modes_to_perms(profile, &tmp); in label_components_match()
221 aa_perms_accum(perms, &tmp); in label_components_match()
228 tmp = aa_compute_fperms(profile->file.dfa, state, &cond); in label_components_match()
229 aa_apply_modes_to_perms(profile, &tmp); in label_components_match()
230 aa_perms_accum(perms, &tmp); in label_components_match()
Dpolicy_ns.c376 struct aa_ns *ns, *tmp; in __ns_list_release() local
378 list_for_each_entry_safe(ns, tmp, head, base.list) in __ns_list_release()
Dapparmorfs.c611 struct aa_perms tmp = { }; in profile_query_cb() local
624 tmp = aa_compute_fperms(dfa, state, &cond); in profile_query_cb()
633 aa_compute_perms(dfa, state, &tmp); in profile_query_cb()
635 aa_apply_modes_to_perms(profile, &tmp); in profile_query_cb()
636 aa_perms_accum_raw(perms, &tmp); in profile_query_cb()
1878 struct aa_loaddata *ent, *tmp; in __aa_fs_list_remove_rawdata() local
1882 list_for_each_entry_safe(ent, tmp, &ns->rawdata_list, list) in __aa_fs_list_remove_rawdata()
/security/selinux/
Dnetlink.c70 sk_buff_data_t tmp; in selnl_notify() local
80 tmp = skb->tail; in selnl_notify()
85 nlh->nlmsg_len = skb->tail - tmp; in selnl_notify()
Davc.c246 struct avc_xperms_decision_node *xpd_node, *tmp; in avc_xperms_free() local
251 list_for_each_entry_safe(xpd_node, tmp, &xp_node->xpd_head, xpd_list) { in avc_xperms_free()
/security/
Ddevice_cgroup.c63 struct dev_exception_item *ex, *tmp, *new; in dev_exceptions_copy() local
77 list_for_each_entry_safe(ex, tmp, dest, list) { in dev_exceptions_copy()
86 struct dev_exception_item *ex, *tmp; in dev_exceptions_move() local
90 list_for_each_entry_safe(ex, tmp, orig, list) { in dev_exceptions_move()
133 struct dev_exception_item *walk, *tmp; in dev_exception_rm() local
137 list_for_each_entry_safe(walk, tmp, &dev_cgroup->exceptions, list) { in dev_exception_rm()
155 struct dev_exception_item *ex, *tmp; in __dev_exception_clean() local
157 list_for_each_entry_safe(ex, tmp, &dev_cgroup->exceptions, list) { in __dev_exception_clean()
531 struct list_head *this, *tmp; in revalidate_active_exceptions() local
533 list_for_each_safe(this, tmp, &devcg->exceptions) { in revalidate_active_exceptions()
/security/integrity/evm/
Devm_secfs.c184 struct xattr_list *xattr, *tmp; in evm_write_xattrs() local
253 list_for_each_entry(tmp, &evm_config_xattrnames, list) { in evm_write_xattrs()
254 if (strcmp(xattr->name, tmp->name) == 0) { in evm_write_xattrs()
256 if (!tmp->enabled) { in evm_write_xattrs()
257 tmp->enabled = true; in evm_write_xattrs()
/security/integrity/ima/
Dima_queue_keys.c135 struct ima_key_entry *entry, *tmp; in ima_process_queued_keys() local
160 list_for_each_entry_safe(entry, tmp, &ima_keys, list) { in ima_process_queued_keys()
Dima_policy.c1764 struct ima_rule_entry *entry, *tmp; in ima_delete_rules() local
1767 list_for_each_entry_safe(entry, tmp, &ima_temp_rules, list) { in ima_delete_rules()
/security/safesetid/
Dsecurityfs.c76 struct hlist_node *tmp; in __release_ruleset() local
78 hash_for_each_safe(pol->rules, bucket, tmp, rule, next) in __release_ruleset()