Lines Matching full:new
11 * cred or task context but instead creates a new one. Ideally the task
44 * @label: new label (NOT NULL)
52 struct cred *new; in aa_replace_current_label() local
62 new = prepare_creds(); in aa_replace_current_label()
63 if (!new) in aa_replace_current_label()
86 aa_put_label(cred_label(new)); in aa_replace_current_label()
87 set_cred_label(new, label); in aa_replace_current_label()
89 commit_creds(new); in aa_replace_current_label()
148 struct cred *new; in aa_set_current_hat() local
150 new = prepare_creds(); in aa_set_current_hat()
151 if (!new) in aa_set_current_hat()
157 ctx->previous = cred_label(new); in aa_set_current_hat()
160 aa_put_label(cred_label(new)); in aa_set_current_hat()
163 abort_creds(new); in aa_set_current_hat()
167 set_cred_label(new, aa_get_newest_label(label)); in aa_set_current_hat()
172 commit_creds(new); in aa_set_current_hat()
188 struct cred *new; in aa_restore_previous_label() local
196 new = prepare_creds(); in aa_restore_previous_label()
197 if (!new) in aa_restore_previous_label()
200 aa_put_label(cred_label(new)); in aa_restore_previous_label()
201 set_cred_label(new, aa_get_newest_label(ctx->previous)); in aa_restore_previous_label()
202 AA_BUG(!cred_label(new)); in aa_restore_previous_label()
206 commit_creds(new); in aa_restore_previous_label()