Lines Matching refs:cred
48 static int may_change_ptraced_domain(const struct cred *to_cred, in may_change_ptraced_domain()
54 const struct cred *tracer_cred = NULL; in may_change_ptraced_domain()
659 static struct aa_label *profile_transition(const struct cred *subj_cred, in profile_transition()
792 static int profile_onexec(const struct cred *subj_cred, in profile_onexec()
867 static struct aa_label *handle_onexec(const struct cred *subj_cred, in handle_onexec()
921 const struct cred *subj_cred; in apparmor_bprm_creds_for_exec()
936 AA_BUG(!cred_label(bprm->cred)); in apparmor_bprm_creds_for_exec()
939 label = aa_get_newest_label(cred_label(bprm->cred)); in apparmor_bprm_creds_for_exec()
1001 error = may_change_ptraced_domain(bprm->cred, new, &info); in apparmor_bprm_creds_for_exec()
1026 aa_put_label(cred_label(bprm->cred)); in apparmor_bprm_creds_for_exec()
1028 set_cred_label(bprm->cred, new); in apparmor_bprm_creds_for_exec()
1055 static struct aa_label *build_change_hat(const struct cred *subj_cred, in build_change_hat()
1105 static struct aa_label *change_hat(const struct cred *subj_cred, in change_hat()
1223 const struct cred *subj_cred; in aa_change_hat()
1351 const struct cred *subj_cred, in change_profile_perms_wrapper()
1397 const struct cred *subj_cred = get_current_cred(); in aa_change_profile()