Home
last modified time | relevance | path

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

/security/tomoyo/
Dgc.c249 struct tomoyo_acl_info *tmp; in tomoyo_del_domain() local
255 list_for_each_entry_safe(acl, tmp, &domain->acl_info_list, list) { in tomoyo_del_domain()
478 struct tomoyo_acl_head *tmp; in tomoyo_collect_member() local
479 list_for_each_entry_safe(member, tmp, member_list, list) { in tomoyo_collect_member()
497 struct tomoyo_acl_info *tmp; in tomoyo_collect_acl() local
498 list_for_each_entry_safe(acl, tmp, list, list) { in tomoyo_collect_acl()
519 struct tomoyo_domain_info *tmp; in tomoyo_collect_entry() local
520 list_for_each_entry_safe(domain, tmp, &tomoyo_domain_list, in tomoyo_collect_entry()
536 struct tomoyo_shared_acl_head *tmp; in tomoyo_collect_entry() local
537 list_for_each_entry_safe(ptr, tmp, &tomoyo_condition_list, in tomoyo_collect_entry()
[all …]
Ddomain.c692 ee->tmp = kzalloc(TOMOYO_EXEC_TMPSIZE, GFP_NOFS); in tomoyo_find_next_domain()
693 if (!ee->tmp) { in tomoyo_find_next_domain()
761 strncpy(ee->tmp, old_domain->domainname->name, in tomoyo_find_next_domain()
763 cp = strrchr(ee->tmp, ' '); in tomoyo_find_next_domain()
767 strncpy(ee->tmp, domainname, TOMOYO_EXEC_TMPSIZE - 1); in tomoyo_find_next_domain()
769 snprintf(ee->tmp, TOMOYO_EXEC_TMPSIZE - 1, "%s %s", in tomoyo_find_next_domain()
782 snprintf(ee->tmp, TOMOYO_EXEC_TMPSIZE - 1, "<%s>", in tomoyo_find_next_domain()
793 snprintf(ee->tmp, TOMOYO_EXEC_TMPSIZE - 1, "%s %s", in tomoyo_find_next_domain()
815 snprintf(ee->tmp, TOMOYO_EXEC_TMPSIZE - 1, "%s %s", in tomoyo_find_next_domain()
821 domain = tomoyo_assign_domain(ee->tmp, true); in tomoyo_find_next_domain()
[all …]
Dutil.c398 char *tmp = *src; in tomoyo_str_starts() local
400 if (strncmp(tmp, find, len)) in tomoyo_str_starts()
402 tmp += len; in tomoyo_str_starts()
403 *src = tmp; in tomoyo_str_starts()
Dcommon.c2140 struct list_head *tmp; in tomoyo_read_query() local
2151 list_for_each(tmp, &tomoyo_query_list) { in tomoyo_read_query()
2152 struct tomoyo_query *ptr = list_entry(tmp, typeof(*ptr), list); in tomoyo_read_query()
2168 list_for_each(tmp, &tomoyo_query_list) { in tomoyo_read_query()
2169 struct tomoyo_query *ptr = list_entry(tmp, typeof(*ptr), list); in tomoyo_read_query()
2201 struct list_head *tmp; in tomoyo_write_answer() local
2205 list_for_each(tmp, &tomoyo_query_list) { in tomoyo_write_answer()
2206 struct tomoyo_query *ptr = list_entry(tmp, typeof(*ptr), list); in tomoyo_write_answer()
2213 list_for_each(tmp, &tomoyo_query_list) { in tomoyo_write_answer()
2214 struct tomoyo_query *ptr = list_entry(tmp, typeof(*ptr), list); in tomoyo_write_answer()
Dcommon.h626 char *tmp; /* Size is TOMOYO_EXEC_TMPSIZE bytes */ member
Dcondition.c107 char *arg_ptr = ee->tmp; in tomoyo_scan_bprm()
/security/apparmor/
Dpolicy_unpack.c358 const char *tmp; in unpack_strdup() local
360 int res = unpack_str(e, &tmp, name); in unpack_strdup()
366 *string = kmemdup(tmp, res, GFP_KERNEL); in unpack_strdup()
525 u32 tmp = 0; in unpack_rlimits() local
526 if (!unpack_u32(e, &tmp, NULL)) in unpack_rlimits()
528 profile->rlimits.mask = tmp; in unpack_rlimits()
593 u32 tmp; in unpack_profile() local
635 if (!unpack_u32(e, &tmp, NULL)) { in unpack_profile()
639 profile->xmatch_len = tmp; in unpack_profile()
651 if (!unpack_u32(e, &tmp, NULL)) in unpack_profile()
[all …]
Dpolicy.c181 struct aa_profile *profile, *tmp; in __aa_profile_list_release() local
182 list_for_each_entry_safe(profile, tmp, head, base.list) in __aa_profile_list_release()
740 struct aa_profile *child, *tmp; in __replace_profile() local
746 list_for_each_entry_safe(child, tmp, &lh, base.list) { in __replace_profile()
858 struct aa_load_ent *ent, *tmp; in aa_replace_profiles() local
913 struct aa_loaddata *tmp; in aa_replace_profiles() local
915 tmp = __aa_get_loaddata(rawdata_ent); in aa_replace_profiles()
917 if (tmp) { in aa_replace_profiles()
919 udata = tmp; in aa_replace_profiles()
997 list_for_each_entry_safe(ent, tmp, &lh, list) { in aa_replace_profiles()
[all …]
Dlabel.c79 struct aa_label *tmp; in __aa_proxy_redirect() local
85 tmp = rcu_dereference_protected(orig->proxy->label, in __aa_proxy_redirect()
89 aa_put_label(tmp); in __aa_proxy_redirect()
282 struct aa_profile *tmp = vec[i]; in aa_vec_unique() local
286 int res = profile_cmp(vec[pos], tmp); in aa_vec_unique()
290 aa_put_profile(tmp); in aa_vec_unique()
301 vec[pos] = tmp; in aa_vec_unique()
318 struct aa_label *tmp; in label_destroy() local
340 tmp = rcu_dereference_protected(label->proxy->label, true); in label_destroy()
341 if (tmp == label) in label_destroy()
[all …]
Ddomain.c202 struct aa_perms tmp; in label_components_match() local
220 tmp = aa_compute_fperms(profile->file.dfa, state, &cond); in label_components_match()
221 aa_apply_modes_to_perms(profile, &tmp); in label_components_match()
222 aa_perms_accum(perms, &tmp); in label_components_match()
229 tmp = aa_compute_fperms(profile->file.dfa, state, &cond); in label_components_match()
230 aa_apply_modes_to_perms(profile, &tmp); in label_components_match()
231 aa_perms_accum(perms, &tmp); in label_components_match()
Dpolicy_ns.c380 struct aa_ns *ns, *tmp; in __ns_list_release() local
382 list_for_each_entry_safe(ns, tmp, head, base.list) in __ns_list_release()
Dapparmorfs.c614 struct aa_perms tmp; in profile_query_cb() local
624 tmp = nullperms; in profile_query_cb()
628 tmp = aa_compute_fperms(dfa, state, &cond); in profile_query_cb()
637 aa_compute_perms(dfa, state, &tmp); in profile_query_cb()
639 tmp = nullperms; in profile_query_cb()
641 aa_apply_modes_to_perms(profile, &tmp); in profile_query_cb()
642 aa_perms_accum_raw(perms, &tmp); in profile_query_cb()
1728 struct aa_loaddata *ent, *tmp; in __aa_fs_list_remove_rawdata() local
1732 list_for_each_entry_safe(ent, tmp, &ns->rawdata_list, list) in __aa_fs_list_remove_rawdata()
/security/apparmor/include/
Dpolicy_unpack.h108 struct aa_loaddata *tmp = __aa_get_loaddata(data); in aa_get_loaddata() local
110 AA_BUG(data && !tmp); in aa_get_loaddata()
112 return tmp; in aa_get_loaddata()
Dlabel.h399 struct aa_label *tmp; in aa_get_newest_label() local
407 tmp = aa_get_label_rcu(&l->proxy->label); in aa_get_newest_label()
408 AA_BUG(!tmp); in aa_get_newest_label()
410 return tmp; in aa_get_newest_label()
/security/selinux/
Dnetlink.c73 sk_buff_data_t tmp; in selnl_notify() local
83 tmp = skb->tail; in selnl_notify()
88 nlh->nlmsg_len = skb->tail - tmp; in selnl_notify()
Davc.c292 struct avc_xperms_decision_node *xpd_node, *tmp; in avc_xperms_free() local
297 list_for_each_entry_safe(xpd_node, tmp, &xp_node->xpd_head, xpd_list) { in avc_xperms_free()
Dhooks.c604 char tmp; in selinux_get_mnt_opts() local
617 tmp = sbsec->flags & SE_MNTMASK; in selinux_get_mnt_opts()
620 if (tmp & 0x01) in selinux_get_mnt_opts()
622 tmp >>= 1; in selinux_get_mnt_opts()
/security/selinux/ss/
Debitmap.c405 struct ebitmap_node *tmp; in ebitmap_read() local
406 tmp = kmem_cache_zalloc(ebitmap_node_cachep, GFP_KERNEL); in ebitmap_read()
407 if (!tmp) { in ebitmap_read()
414 tmp->startbit = startbit - (startbit % EBITMAP_SIZE); in ebitmap_read()
416 n->next = tmp; in ebitmap_read()
418 e->node = tmp; in ebitmap_read()
419 n = tmp; in ebitmap_read()
/security/
Ddevice_cgroup.c70 struct dev_exception_item *ex, *tmp, *new; in dev_exceptions_copy() local
84 list_for_each_entry_safe(ex, tmp, dest, list) { in dev_exceptions_copy()
129 struct dev_exception_item *walk, *tmp; in dev_exception_rm() local
133 list_for_each_entry_safe(walk, tmp, &dev_cgroup->exceptions, list) { in dev_exception_rm()
151 struct dev_exception_item *ex, *tmp; in __dev_exception_clean() local
153 list_for_each_entry_safe(ex, tmp, &dev_cgroup->exceptions, list) { in __dev_exception_clean()
526 struct list_head *this, *tmp; in revalidate_active_exceptions() local
528 list_for_each_safe(this, tmp, &devcg->exceptions) { in revalidate_active_exceptions()
/security/integrity/ima/
Dima_policy.c948 struct ima_rule_entry *entry, *tmp; in ima_delete_rules() local
952 list_for_each_entry_safe(entry, tmp, &ima_temp_rules, list) { in ima_delete_rules()