Lines Matching refs:ctx
44 struct aa_task_ctx *ctx = task_ctx(current);
59 if (ctx->nnp && label_is_stale(ctx->nnp)) {
60 struct aa_label *tmp = ctx->nnp;
62 ctx->nnp = aa_get_newest_label(tmp);
95 struct aa_task_ctx *ctx = task_ctx(current);
98 aa_put_label(ctx->onexec);
99 ctx->onexec = label;
100 ctx->token = stack;
117 struct aa_task_ctx *ctx = task_ctx(current);
125 if (!ctx->previous) {
127 ctx->previous = cred_label(new);
128 ctx->token = token;
129 } else if (ctx->token == token) {
132 /* previous_profile && ctx->token != token */
139 aa_put_label(ctx->onexec);
140 ctx->onexec = NULL;
157 struct aa_task_ctx *ctx = task_ctx(current);
160 if (ctx->token != token)
163 if (!ctx->previous)
171 set_cred_label(new, aa_get_newest_label(ctx->previous));
174 aa_clear_task_ctx_trans(ctx);