Lines Matching refs:new_profile
241 struct aa_profile *new_profile = NULL; in x_table_lookup() local
248 for (name = profile->file.trans.table[index]; !new_profile && name; in x_table_lookup()
256 new_profile = aa_find_child(profile, name); in x_table_lookup()
282 new_profile = aa_lookup_profile(new_ns ? new_ns : ns, xname); in x_table_lookup()
287 return new_profile; in x_table_lookup()
303 struct aa_profile *new_profile = NULL; in x_to_profile() local
314 new_profile = find_attach(ns, &profile->base.profiles, in x_to_profile()
318 new_profile = find_attach(ns, &ns->base.profiles, in x_to_profile()
323 new_profile = x_table_lookup(profile, xindex); in x_to_profile()
328 return new_profile; in x_to_profile()
340 struct aa_profile *profile, *new_profile = NULL; in apparmor_bprm_set_creds() local
384 new_profile = aa_get_profile(cxt->onexec); in apparmor_bprm_set_creds()
386 new_profile = find_attach(ns, &ns->base.profiles, name); in apparmor_bprm_set_creds()
387 if (!new_profile) in apparmor_bprm_set_creds()
416 new_profile = aa_get_newest_profile(cxt->onexec); in apparmor_bprm_set_creds()
422 new_profile = x_to_profile(profile, name, perms.xindex); in apparmor_bprm_set_creds()
423 if (!new_profile) { in apparmor_bprm_set_creds()
430 new_profile = aa_get_profile(profile); in apparmor_bprm_set_creds()
433 new_profile = aa_get_newest_profile(ns->unconfined); in apparmor_bprm_set_creds()
444 new_profile = aa_new_null_profile(profile, 0); in apparmor_bprm_set_creds()
445 if (!new_profile) { in apparmor_bprm_set_creds()
450 target = new_profile->base.hname; in apparmor_bprm_set_creds()
462 aa_put_profile(new_profile); in apparmor_bprm_set_creds()
467 if (!new_profile) in apparmor_bprm_set_creds()
476 error = may_change_ptraced_domain(new_profile); in apparmor_bprm_set_creds()
478 aa_put_profile(new_profile); in apparmor_bprm_set_creds()
497 name, new_profile->base.hname); in apparmor_bprm_set_creds()
501 target = new_profile->base.hname; in apparmor_bprm_set_creds()
508 cxt->profile = new_profile; in apparmor_bprm_set_creds()