Lines Matching defs:profile
31 * as the profile reference is now stored in the f_cred. However the
61 * @profile: the current profile (NOT NULL)
62 * @exec: profile to transition to on next exec (MAYBE NULL)
63 * @previous: profile the task may return to (MAYBE NULL)
66 * Contains the task's current profile (which could change due to
72 struct aa_profile *profile;
82 int aa_replace_current_profile(struct aa_profile *profile);
83 int aa_set_current_onexec(struct aa_profile *profile);
84 int aa_set_current_hat(struct aa_profile *profile, u64 token);
93 * Returns: confining profile
100 BUG_ON(!cxt || !cxt->profile);
101 return cxt->profile;
105 * __aa_task_profile - retrieve another task's profile
108 * Returns: @task's profile without incrementing its ref count
129 * __aa_current_profile - find the current tasks confining profile
131 * Returns: up to date confining profile or the ns unconfined profile (NOT NULL)
134 * of the profile so it is safe to call when inside of locks.
142 * aa_current_profile - find the current tasks confining profile and do updates
144 * Returns: up to date confining profile or the ns unconfined profile (NOT NULL)
146 * This fn will update the tasks cred structure if the profile has been
152 struct aa_profile *profile;
153 BUG_ON(!cxt || !cxt->profile);
155 if (PROFILE_INVALID(cxt->profile)) {
156 profile = aa_get_newest_profile(cxt->profile);
157 aa_replace_current_profile(profile);
158 aa_put_profile(profile);
162 return cxt->profile;