Lines Matching refs:subj_cred

629 static struct aa_label *profile_transition(const struct cred *subj_cred,
720 aa_audit_file(subj_cred, profile, &perms, OP_EXEC, MAY_EXEC, name,
731 static int profile_onexec(const struct cred *subj_cred,
800 return aa_audit_file(subj_cred, profile, &perms, OP_EXEC,
807 static struct aa_label *handle_onexec(const struct cred *subj_cred,
825 profile_onexec(subj_cred, profile, onexec, stack,
831 profile_transition(subj_cred, profile, bprm,
838 profile_onexec(subj_cred, profile, onexec, stack, bprm,
845 profile_transition(subj_cred, profile, bprm,
855 aa_audit_file(subj_cred, profile, &nullperms,
875 const struct cred *subj_cred;
888 subj_cred = current_cred();
915 new = handle_onexec(subj_cred, label, ctx->onexec, ctx->token,
919 profile_transition(subj_cred, profile, bprm,
1009 static struct aa_label *build_change_hat(const struct cred *subj_cred,
1042 aa_audit_file(subj_cred, profile, &nullperms, OP_CHANGE_HAT,
1059 static struct aa_label *change_hat(const struct cred *subj_cred,
1136 aa_audit_file(subj_cred, profile, &nullperms,
1146 build_change_hat(subj_cred, profile, name,
1177 const struct cred *subj_cred;
1186 subj_cred = get_current_cred();
1187 label = aa_get_newest_cred_label(subj_cred);
1207 new = change_hat(subj_cred, label, hats, count, flags);
1217 error = may_change_ptraced_domain(subj_cred, new, &info);
1270 put_cred(subj_cred);
1280 aa_audit_file(subj_cred, profile, &perms, OP_CHANGE_HAT,
1289 const struct cred *subj_cred,
1304 error = aa_audit_file(subj_cred, profile, perms, op, request,
1334 const struct cred *subj_cred = get_current_cred();
1412 subj_cred,
1423 error = may_change_ptraced_domain(subj_cred, target, &info);
1483 aa_audit_file(subj_cred,
1492 put_cred(subj_cred);