Lines Matching refs:ns

96 					      struct aa_namespace *ns,  in change_profile_perms()  argument
110 } else if ((ns == profile->ns)) { in change_profile_perms()
118 state = aa_dfa_match(profile->file.dfa, start, ns->base.name); in change_profile_perms()
173 static struct aa_profile *find_attach(struct aa_namespace *ns, in find_attach() argument
242 struct aa_namespace *ns = profile->ns; in x_table_lookup() local
270 new_ns = aa_find_namespace(ns, ns_name); in x_table_lookup()
282 new_profile = aa_lookup_profile(new_ns ? new_ns : ns, xname); in x_table_lookup()
304 struct aa_namespace *ns = profile->ns; 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()
341 struct aa_namespace *ns; in apparmor_bprm_set_creds() local
365 ns = profile->ns; in apparmor_bprm_set_creds()
388 new_profile = find_attach(ns, &ns->base.profiles, name); in apparmor_bprm_set_creds()
412 cp = change_profile_perms(profile, cxt->onexec->ns, in apparmor_bprm_set_creds()
435 new_profile = aa_get_newest_profile(ns->unconfined); in apparmor_bprm_set_creds()
752 struct aa_namespace *ns = NULL; in aa_change_profile() local
786 ns = aa_find_namespace(profile->ns, ns_name); in aa_change_profile()
787 if (!ns) { in aa_change_profile()
796 ns = aa_get_namespace(profile->ns); in aa_change_profile()
801 hname = ns->unconfined->base.hname; in aa_change_profile()
806 perms = change_profile_perms(profile, ns, hname, request, in aa_change_profile()
814 target = aa_lookup_profile(ns, hname); in aa_change_profile()
849 aa_put_namespace(ns); in aa_change_profile()