Home
last modified time | relevance | path

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

/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.c716 ee->tmp = kzalloc(TOMOYO_EXEC_TMPSIZE, GFP_NOFS); in tomoyo_find_next_domain()
717 if (!ee->tmp) { in tomoyo_find_next_domain()
789 strncpy(ee->tmp, old_domain->domainname->name, in tomoyo_find_next_domain()
791 cp = strrchr(ee->tmp, ' '); in tomoyo_find_next_domain()
795 strncpy(ee->tmp, domainname, TOMOYO_EXEC_TMPSIZE - 1); in tomoyo_find_next_domain()
797 snprintf(ee->tmp, TOMOYO_EXEC_TMPSIZE - 1, "%s %s", in tomoyo_find_next_domain()
810 snprintf(ee->tmp, TOMOYO_EXEC_TMPSIZE - 1, "<%s>", in tomoyo_find_next_domain()
821 snprintf(ee->tmp, TOMOYO_EXEC_TMPSIZE - 1, "%s %s", in tomoyo_find_next_domain()
843 snprintf(ee->tmp, TOMOYO_EXEC_TMPSIZE - 1, "%s %s", in tomoyo_find_next_domain()
849 domain = tomoyo_assign_domain(ee->tmp, true); in tomoyo_find_next_domain()
[all …]
Dutil.c385 char *tmp = *src; in tomoyo_str_starts() local
387 if (strncmp(tmp, find, len)) in tomoyo_str_starts()
389 tmp += len; in tomoyo_str_starts()
390 *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/
Dpolicy_unpack.c415 const char *tmp; in unpack_strdup() local
417 int res = unpack_str(e, &tmp, name); in unpack_strdup()
423 *string = kmemdup(tmp, res, GFP_KERNEL); in unpack_strdup()
623 u32 tmp = 0; in unpack_rlimits() local
624 if (!unpack_u32(e, &tmp, NULL)) in unpack_rlimits()
626 profile->rlimits.mask = tmp; in unpack_rlimits()
682 u32 tmp; in unpack_profile() local
724 if (!unpack_u32(e, &tmp, NULL)) { in unpack_profile()
728 profile->xmatch_len = tmp; in unpack_profile()
740 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()
742 struct aa_profile *child, *tmp; in __replace_profile() local
748 list_for_each_entry_safe(child, tmp, &lh, base.list) { in __replace_profile()
861 struct aa_load_ent *ent, *tmp; in aa_replace_profiles() local
916 struct aa_loaddata *tmp; in aa_replace_profiles() local
918 tmp = __aa_get_loaddata(rawdata_ent); in aa_replace_profiles()
920 if (tmp) { in aa_replace_profiles()
922 udata = tmp; in aa_replace_profiles()
1000 list_for_each_entry_safe(ent, tmp, &lh, list) { in aa_replace_profiles()
[all …]
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()
314 struct aa_label *tmp; in label_destroy() local
336 tmp = rcu_dereference_protected(label->proxy->label, true); in label_destroy()
337 if (tmp == label) in label_destroy()
[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()
Ddomain.c199 struct aa_perms tmp; in label_components_match() local
217 tmp = aa_compute_fperms(profile->file.dfa, state, &cond); in label_components_match()
218 aa_apply_modes_to_perms(profile, &tmp); in label_components_match()
219 aa_perms_accum(perms, &tmp); in label_components_match()
226 tmp = aa_compute_fperms(profile->file.dfa, state, &cond); in label_components_match()
227 aa_apply_modes_to_perms(profile, &tmp); in label_components_match()
228 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.c612 struct aa_perms tmp = { }; in profile_query_cb() local
625 tmp = aa_compute_fperms(dfa, state, &cond); in profile_query_cb()
634 aa_compute_perms(dfa, state, &tmp); in profile_query_cb()
636 aa_apply_modes_to_perms(profile, &tmp); in profile_query_cb()
637 aa_perms_accum_raw(perms, &tmp); in profile_query_cb()
1788 struct aa_loaddata *ent, *tmp; in __aa_fs_list_remove_rawdata() local
1792 list_for_each_entry_safe(ent, tmp, &ns->rawdata_list, list) in __aa_fs_list_remove_rawdata()
/security/apparmor/include/
Dpolicy_unpack.h104 struct aa_loaddata *tmp = __aa_get_loaddata(data); in aa_get_loaddata() local
106 AA_BUG(data && !tmp); in aa_get_loaddata()
108 return tmp; in aa_get_loaddata()
Dlabel.h423 struct aa_label *tmp; in aa_get_newest_label() local
431 tmp = aa_get_label_rcu(&l->proxy->label); in aa_get_newest_label()
432 AA_BUG(!tmp); in aa_get_newest_label()
434 return tmp; in aa_get_newest_label()
/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.c240 struct avc_xperms_decision_node *xpd_node, *tmp; in avc_xperms_free() local
245 list_for_each_entry_safe(xpd_node, tmp, &xp_node->xpd_head, xpd_list) { in avc_xperms_free()
/security/
Ddevice_cgroup.c61 struct dev_exception_item *ex, *tmp, *new; in dev_exceptions_copy() local
75 list_for_each_entry_safe(ex, tmp, dest, list) { in dev_exceptions_copy()
120 struct dev_exception_item *walk, *tmp; in dev_exception_rm() local
124 list_for_each_entry_safe(walk, tmp, &dev_cgroup->exceptions, list) { in dev_exception_rm()
142 struct dev_exception_item *ex, *tmp; in __dev_exception_clean() local
144 list_for_each_entry_safe(ex, tmp, &dev_cgroup->exceptions, list) { in __dev_exception_clean()
517 struct list_head *this, *tmp; in revalidate_active_exceptions() local
519 list_for_each_safe(this, tmp, &devcg->exceptions) { in revalidate_active_exceptions()
/security/selinux/ss/
Debitmap.c407 struct ebitmap_node *tmp; in ebitmap_read() local
408 tmp = kmem_cache_zalloc(ebitmap_node_cachep, GFP_KERNEL); in ebitmap_read()
409 if (!tmp) { in ebitmap_read()
415 tmp->startbit = startbit - (startbit % EBITMAP_SIZE); in ebitmap_read()
417 n->next = tmp; in ebitmap_read()
419 e->node = tmp; in ebitmap_read()
420 n = tmp; in ebitmap_read()
/security/integrity/evm/
Devm_secfs.c178 struct xattr_list *xattr, *tmp; in evm_write_xattrs() local
239 list_for_each_entry(tmp, &evm_config_xattrnames, list) { in evm_write_xattrs()
240 if (strcmp(xattr->name, tmp->name) == 0) { in evm_write_xattrs()
/security/safesetid/
Dsecurityfs.c66 struct hlist_node *tmp; in __release_ruleset() local
68 hash_for_each_safe(pol->rules, bucket, tmp, rule, next) in __release_ruleset()
/security/integrity/ima/
Dima_policy.c1289 struct ima_rule_entry *entry, *tmp; in ima_delete_rules() local
1293 list_for_each_entry_safe(entry, tmp, &ima_temp_rules, list) { in ima_delete_rules()