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
386 new_profile = aa_get_profile(cxt->onexec); in apparmor_bprm_set_creds()
388 new_profile = find_attach(ns, &ns->base.profiles, name); in apparmor_bprm_set_creds()
389 if (!new_profile) in apparmor_bprm_set_creds()
418 new_profile = aa_get_newest_profile(cxt->onexec); in apparmor_bprm_set_creds()
424 new_profile = x_to_profile(profile, name, perms.xindex); in apparmor_bprm_set_creds()
425 if (!new_profile) { in apparmor_bprm_set_creds()
432 new_profile = aa_get_profile(profile); in apparmor_bprm_set_creds()
435 new_profile = aa_get_newest_profile(ns->unconfined); in apparmor_bprm_set_creds()
446 new_profile = aa_new_null_profile(profile, 0); in apparmor_bprm_set_creds()
447 if (!new_profile) { in apparmor_bprm_set_creds()
452 target = new_profile->base.hname; in apparmor_bprm_set_creds()
464 aa_put_profile(new_profile); in apparmor_bprm_set_creds()
469 if (!new_profile) in apparmor_bprm_set_creds()
478 error = may_change_ptraced_domain(new_profile); in apparmor_bprm_set_creds()
480 aa_put_profile(new_profile); in apparmor_bprm_set_creds()
499 name, new_profile->base.hname); in apparmor_bprm_set_creds()
503 target = new_profile->base.hname; in apparmor_bprm_set_creds()
510 cxt->profile = new_profile; in apparmor_bprm_set_creds()