Lines Matching refs:cxt
53 static inline void aa_free_file_context(struct aa_file_cxt *cxt) in aa_free_file_context() argument
55 if (cxt) in aa_free_file_context()
56 kzfree(cxt); in aa_free_file_context()
79 void aa_free_task_context(struct aa_task_cxt *cxt);
99 struct aa_task_cxt *cxt = cred_cxt(cred); in aa_cred_profile() local
100 BUG_ON(!cxt || !cxt->profile); in aa_cred_profile()
101 return cxt->profile; in aa_cred_profile()
151 const struct aa_task_cxt *cxt = current_cxt(); in aa_current_profile() local
153 BUG_ON(!cxt || !cxt->profile); in aa_current_profile()
155 if (PROFILE_INVALID(cxt->profile)) { in aa_current_profile()
156 profile = aa_get_newest_profile(cxt->profile); in aa_current_profile()
159 cxt = current_cxt(); in aa_current_profile()
162 return cxt->profile; in aa_current_profile()
169 static inline void aa_clear_task_cxt_trans(struct aa_task_cxt *cxt) in aa_clear_task_cxt_trans() argument
171 aa_put_profile(cxt->previous); in aa_clear_task_cxt_trans()
172 aa_put_profile(cxt->onexec); in aa_clear_task_cxt_trans()
173 cxt->previous = NULL; in aa_clear_task_cxt_trans()
174 cxt->onexec = NULL; in aa_clear_task_cxt_trans()
175 cxt->token = 0; in aa_clear_task_cxt_trans()