Lines Matching refs:new
50 struct cred *new; in aa_replace_current_label() local
60 new = prepare_creds(); in aa_replace_current_label()
61 if (!new) in aa_replace_current_label()
84 aa_put_label(cred_label(new)); in aa_replace_current_label()
85 set_cred_label(new, label); in aa_replace_current_label()
87 commit_creds(new); in aa_replace_current_label()
123 struct cred *new; in aa_set_current_hat() local
125 new = prepare_creds(); in aa_set_current_hat()
126 if (!new) in aa_set_current_hat()
132 ctx->previous = cred_label(new); in aa_set_current_hat()
135 aa_put_label(cred_label(new)); in aa_set_current_hat()
138 abort_creds(new); in aa_set_current_hat()
142 set_cred_label(new, aa_get_newest_label(label)); in aa_set_current_hat()
147 commit_creds(new); in aa_set_current_hat()
163 struct cred *new; in aa_restore_previous_label() local
171 new = prepare_creds(); in aa_restore_previous_label()
172 if (!new) in aa_restore_previous_label()
175 aa_put_label(cred_label(new)); in aa_restore_previous_label()
176 set_cred_label(new, aa_get_newest_label(ctx->previous)); in aa_restore_previous_label()
177 AA_BUG(!cred_label(new)); in aa_restore_previous_label()
181 commit_creds(new); in aa_restore_previous_label()