Lines Matching refs:profile
50 aa_put_profile(cxt->profile); in aa_free_task_context()
66 aa_get_profile(new->profile); in aa_dup_task_context()
94 int aa_replace_current_profile(struct aa_profile *profile) in aa_replace_current_profile() argument
98 BUG_ON(!profile); in aa_replace_current_profile()
100 if (cxt->profile == profile) in aa_replace_current_profile()
108 if (unconfined(profile) || (cxt->profile->ns != profile->ns)) in aa_replace_current_profile()
118 aa_get_profile(profile); in aa_replace_current_profile()
119 aa_put_profile(cxt->profile); in aa_replace_current_profile()
120 cxt->profile = profile; in aa_replace_current_profile()
132 int aa_set_current_onexec(struct aa_profile *profile) in aa_set_current_onexec() argument
140 aa_get_profile(profile); in aa_set_current_onexec()
142 cxt->onexec = profile; in aa_set_current_onexec()
158 int aa_set_current_hat(struct aa_profile *profile, u64 token) in aa_set_current_hat() argument
164 BUG_ON(!profile); in aa_set_current_hat()
169 cxt->previous = cxt->profile; in aa_set_current_hat()
172 aa_put_profile(cxt->profile); in aa_set_current_hat()
178 cxt->profile = aa_get_newest_profile(profile); in aa_set_current_hat()
214 aa_put_profile(cxt->profile); in aa_restore_previous_profile()
215 cxt->profile = aa_get_newest_profile(cxt->previous); in aa_restore_previous_profile()
216 BUG_ON(!cxt->profile); in aa_restore_previous_profile()