Lines Matching full:new
15 * cred or task context but instead creates a new one. Ideally the task
41 * @label: new label (NOT NULL)
49 struct cred *new; in aa_replace_current_label() local
59 new = prepare_creds(); in aa_replace_current_label()
60 if (!new) in aa_replace_current_label()
83 aa_put_label(cred_label(new)); in aa_replace_current_label()
84 cred_label(new) = label; in aa_replace_current_label()
86 commit_creds(new); in aa_replace_current_label()
122 struct cred *new; in aa_set_current_hat() local
124 new = prepare_creds(); in aa_set_current_hat()
125 if (!new) in aa_set_current_hat()
131 ctx->previous = cred_label(new); in aa_set_current_hat()
134 aa_put_label(cred_label(new)); in aa_set_current_hat()
137 abort_creds(new); in aa_set_current_hat()
141 cred_label(new) = aa_get_newest_label(label); in aa_set_current_hat()
146 commit_creds(new); in aa_set_current_hat()
162 struct cred *new; in aa_restore_previous_label() local
170 new = prepare_creds(); in aa_restore_previous_label()
171 if (!new) in aa_restore_previous_label()
174 aa_put_label(cred_label(new)); in aa_restore_previous_label()
175 cred_label(new) = aa_get_newest_label(ctx->previous); in aa_restore_previous_label()
176 AA_BUG(!cred_label(new)); in aa_restore_previous_label()
180 commit_creds(new); in aa_restore_previous_label()