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()
120 struct cred *new; in aa_set_current_hat() local
122 new = prepare_creds(); in aa_set_current_hat()
123 if (!new) in aa_set_current_hat()
129 ctx->previous = cred_label(new); in aa_set_current_hat()
132 aa_put_label(cred_label(new)); in aa_set_current_hat()
135 abort_creds(new); in aa_set_current_hat()
139 set_cred_label(new, aa_get_newest_label(label)); in aa_set_current_hat()
144 commit_creds(new); in aa_set_current_hat()
160 struct cred *new; in aa_restore_previous_label() local
168 new = prepare_creds(); in aa_restore_previous_label()
169 if (!new) in aa_restore_previous_label()
172 aa_put_label(cred_label(new)); in aa_restore_previous_label()
173 set_cred_label(new, aa_get_newest_label(ctx->previous)); in aa_restore_previous_label()
174 AA_BUG(!cred_label(new)); in aa_restore_previous_label()
178 commit_creds(new); in aa_restore_previous_label()