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
363 ns = profile->ns; in apparmor_bprm_set_creds()
386 new_profile = find_attach(ns, &ns->base.profiles, name); in apparmor_bprm_set_creds()
410 cp = change_profile_perms(profile, cxt->onexec->ns, in apparmor_bprm_set_creds()
433 new_profile = aa_get_newest_profile(ns->unconfined); in apparmor_bprm_set_creds()
748 struct aa_namespace *ns = NULL; in aa_change_profile() local
782 ns = aa_find_namespace(profile->ns, ns_name); in aa_change_profile()
783 if (!ns) { in aa_change_profile()
792 ns = aa_get_namespace(profile->ns); in aa_change_profile()
797 hname = ns->unconfined->base.hname; in aa_change_profile()
802 perms = change_profile_perms(profile, ns, hname, request, in aa_change_profile()
810 target = aa_lookup_profile(ns, hname); in aa_change_profile()
845 aa_put_namespace(ns); in aa_change_profile()