Lines Matching refs:ctx
919 struct aa_task_ctx *ctx; in apparmor_bprm_creds_for_exec() local
935 ctx = task_ctx(current); in apparmor_bprm_creds_for_exec()
937 AA_BUG(!ctx); in apparmor_bprm_creds_for_exec()
949 !ctx->nnp) in apparmor_bprm_creds_for_exec()
950 ctx->nnp = aa_get_label(label); in apparmor_bprm_creds_for_exec()
960 if (ctx->onexec) in apparmor_bprm_creds_for_exec()
961 new = handle_onexec(subj_cred, label, ctx->onexec, ctx->token, in apparmor_bprm_creds_for_exec()
988 !aa_label_is_unconfined_subset(new, ctx->nnp)) { in apparmor_bprm_creds_for_exec()
1224 struct aa_task_ctx *ctx = task_ctx(current); in aa_change_hat() local
1234 previous = aa_get_newest_label(ctx->previous); in aa_change_hat()
1243 if (task_no_new_privs(current) && !unconfined(label) && !ctx->nnp) in aa_change_hat()
1244 ctx->nnp = aa_get_label(label); in aa_change_hat()
1286 !aa_label_is_unconfined_subset(new, ctx->nnp)) { in aa_change_hat()
1308 !aa_label_is_unconfined_subset(previous, ctx->nnp)) { in aa_change_hat()
1396 struct aa_task_ctx *ctx = task_ctx(current); in aa_change_profile() local
1411 if (task_no_new_privs(current) && !unconfined(label) && !ctx->nnp) in aa_change_profile()
1412 ctx->nnp = aa_get_label(label); in aa_change_profile()
1533 !aa_label_is_unconfined_subset(new, ctx->nnp)) { in aa_change_profile()