Lines Matching refs:cred
1009 if (bprm->cred->uid != current_euid() || in flush_old_exec()
1010 bprm->cred->gid != current_egid()) { in flush_old_exec()
1042 commit_creds(bprm->cred); in install_exec_creds()
1043 bprm->cred = NULL; in install_exec_creds()
1103 bprm->cred->euid = current_euid(); in prepare_binprm()
1104 bprm->cred->egid = current_egid(); in prepare_binprm()
1110 bprm->cred->euid = inode->i_uid; in prepare_binprm()
1121 bprm->cred->egid = inode->i_gid; in prepare_binprm()
1263 if (bprm->cred) in free_bprm()
1264 abort_creds(bprm->cred); in free_bprm()
1299 bprm->cred = prepare_exec_creds(); in do_execve()
1300 if (!bprm->cred) in do_execve()
1406 const struct cred *cred = current_cred(); in format_corename() local
1443 "%d", cred->uid); in format_corename()
1451 "%d", cred->gid); in format_corename()
1727 const struct cred *old_cred; in do_coredump()
1728 struct cred *cred; in do_coredump() local
1743 cred = prepare_creds(); in do_coredump()
1744 if (!cred) { in do_coredump()
1755 put_cred(cred); in do_coredump()
1766 cred->fsuid = 0; /* Dump root private */ in do_coredump()
1771 put_cred(cred); in do_coredump()
1775 old_cred = override_creds(cred); in do_coredump()
1872 put_cred(cred); in do_coredump()