Lines Matching refs:new
63 void aa_dup_task_context(struct aa_task_cxt *new, const struct aa_task_cxt *old) in aa_dup_task_context() argument
65 *new = *old; in aa_dup_task_context()
66 aa_get_profile(new->profile); in aa_dup_task_context()
67 aa_get_profile(new->previous); in aa_dup_task_context()
68 aa_get_profile(new->onexec); in aa_dup_task_context()
97 struct cred *new; in aa_replace_current_profile() local
103 new = prepare_creds(); in aa_replace_current_profile()
104 if (!new) in aa_replace_current_profile()
107 cxt = cred_cxt(new); in aa_replace_current_profile()
122 commit_creds(new); in aa_replace_current_profile()
135 struct cred *new = prepare_creds(); in aa_set_current_onexec() local
136 if (!new) in aa_set_current_onexec()
139 cxt = cred_cxt(new); in aa_set_current_onexec()
144 commit_creds(new); in aa_set_current_onexec()
161 struct cred *new = prepare_creds(); in aa_set_current_hat() local
162 if (!new) in aa_set_current_hat()
166 cxt = cred_cxt(new); in aa_set_current_hat()
175 abort_creds(new); in aa_set_current_hat()
183 commit_creds(new); in aa_set_current_hat()
199 struct cred *new = prepare_creds(); in aa_restore_previous_profile() local
200 if (!new) in aa_restore_previous_profile()
203 cxt = cred_cxt(new); in aa_restore_previous_profile()
205 abort_creds(new); in aa_restore_previous_profile()
210 abort_creds(new); in aa_restore_previous_profile()
220 commit_creds(new); in aa_restore_previous_profile()