Lines Matching full:new
11 * cred or task context but instead creates a new one. Ideally the task
37 * @label: new label (NOT NULL)
45 struct cred *new; in aa_replace_current_label() local
55 new = prepare_creds(); in aa_replace_current_label()
56 if (!new) in aa_replace_current_label()
79 aa_put_label(cred_label(new)); in aa_replace_current_label()
80 set_cred_label(new, label); in aa_replace_current_label()
82 commit_creds(new); in aa_replace_current_label()
118 struct cred *new; in aa_set_current_hat() local
120 new = prepare_creds(); in aa_set_current_hat()
121 if (!new) in aa_set_current_hat()
127 ctx->previous = cred_label(new); in aa_set_current_hat()
130 aa_put_label(cred_label(new)); in aa_set_current_hat()
133 abort_creds(new); in aa_set_current_hat()
137 set_cred_label(new, aa_get_newest_label(label)); in aa_set_current_hat()
142 commit_creds(new); in aa_set_current_hat()
158 struct cred *new; in aa_restore_previous_label() local
166 new = prepare_creds(); in aa_restore_previous_label()
167 if (!new) in aa_restore_previous_label()
170 aa_put_label(cred_label(new)); in aa_restore_previous_label()
171 set_cred_label(new, aa_get_newest_label(ctx->previous)); in aa_restore_previous_label()
172 AA_BUG(!cred_label(new)); in aa_restore_previous_label()
176 commit_creds(new); in aa_restore_previous_label()