Lines Matching refs:cxt
61 struct aa_task_cxt *cxt = aa_alloc_task_context(gfp); in apparmor_cred_alloc_blank() local
62 if (!cxt) in apparmor_cred_alloc_blank()
65 cred_cxt(cred) = cxt; in apparmor_cred_alloc_blank()
76 struct aa_task_cxt *cxt = aa_alloc_task_context(gfp); in apparmor_cred_prepare() local
77 if (!cxt) in apparmor_cred_prepare()
80 aa_dup_task_context(cxt, cred_cxt(old)); in apparmor_cred_prepare()
81 cred_cxt(new) = cxt; in apparmor_cred_prepare()
421 struct aa_file_cxt *cxt = file->f_security; in apparmor_file_free_security() local
423 aa_free_file_context(cxt); in apparmor_file_free_security()
510 struct aa_task_cxt *cxt = cred_cxt(cred); in apparmor_getprocattr() local
514 profile = aa_get_newest_profile(cxt->profile); in apparmor_getprocattr()
515 else if (strcmp(name, "prev") == 0 && cxt->previous) in apparmor_getprocattr()
516 profile = aa_get_newest_profile(cxt->previous); in apparmor_getprocattr()
517 else if (strcmp(name, "exec") == 0 && cxt->onexec) in apparmor_getprocattr()
518 profile = aa_get_newest_profile(cxt->onexec); in apparmor_getprocattr()
885 struct aa_task_cxt *cxt; in set_init_cxt() local
887 cxt = aa_alloc_task_context(GFP_KERNEL); in set_init_cxt()
888 if (!cxt) in set_init_cxt()
891 cxt->profile = aa_get_profile(root_ns->unconfined); in set_init_cxt()
892 cred_cxt(cred) = cxt; in set_init_cxt()