| /freebsd-10-stable/sys/kern/ |
| D | kern_prot.c | 222 td->td_retval[0] = td->td_ucred->cr_ruid; in sys_getuid() 535 if (uid != oldcred->cr_ruid && /* allow setuid(getuid()) */ in sys_setuid() 561 if (uid != oldcred->cr_ruid) { in sys_setuid() 632 if (euid != oldcred->cr_ruid && /* allow seteuid(getuid()) */ in sys_seteuid() 906 if (((ruid != (uid_t)-1 && ruid != oldcred->cr_ruid && in sys_setreuid() 909 euid != oldcred->cr_ruid && euid != oldcred->cr_svuid)) && in sys_setreuid() 917 if (ruid != (uid_t)-1 && oldcred->cr_ruid != ruid) { in sys_setreuid() 921 if ((ruid != (uid_t)-1 || newcred->cr_uid != newcred->cr_ruid) && in sys_setreuid() 1043 if (((ruid != (uid_t)-1 && ruid != oldcred->cr_ruid && in sys_setresuid() 1046 (euid != (uid_t)-1 && euid != oldcred->cr_ruid && in sys_setresuid() [all …]
|
| D | kern_priv.c | 130 if (cred->cr_ruid == 0) { in priv_check_cred()
|
| D | kern_thr.c | 390 ksi.ksi_uid = td->td_ucred->cr_ruid; in sys_thr_kill() 438 ksi.ksi_uid = td->td_ucred->cr_ruid; in sys_thr_kill2()
|
| D | kern_sig.c | 165 (cr1)->cr_ruid == (cr2)->cr_ruid || \ 166 (cr1)->cr_uid == (cr2)->cr_ruid || \ 167 (cr1)->cr_ruid == (cr2)->cr_uid || \ 1762 ksi.ksi_uid = td->td_ucred->cr_ruid; in sys_kill() 1840 ksi.ksi_uid = td->td_ucred->cr_ruid; in okillpg() 1890 ksi.ksi_uid = td->td_ucred->cr_ruid; in kern_sigqueue() 3087 p->p_ksi->ksi_uid = p->p_ucred->cr_ruid; in sigparent()
|
| D | sys_procdesc.c | 501 sb->st_uid = pd->pd_proc->p_ucred->cr_ruid; in procdesc_stat()
|
| D | kern_acct.c | 414 acct.ac_uid = p->p_ucred->cr_ruid; in acct_process()
|
| /freebsd-10-stable/tools/regression/security/proc_to_proc/ |
| D | scenario.c | 49 uid_t cr_euid, cr_ruid, cr_svuid; member 178 error = getresuid(&cred->cr_ruid, &cred->cr_euid, &cred->cr_svuid); in cred_get() 214 error = setresuid(cred->cr_ruid, cred->cr_euid, cred->cr_svuid); in cred_set() 232 assert(ruid == cred->cr_ruid); in cred_set() 250 cred->cr_ruid, cred->cr_svuid, cred->cr_issetugid); in cred_print()
|
| /freebsd-10-stable/sys/security/mac_seeotheruids/ |
| D | mac_seeotheruids.c | 122 if (cr1->cr_ruid == cr2->cr_ruid) in seeotheruids_check()
|
| /freebsd-10-stable/sys/security/mac_bsdextended/ |
| D | mac_bsdextended.c | 242 (cred->cr_ruid <= rule->mbr_subject.mbs_uid_max && in ugidfw_rulecheck() 243 cred->cr_ruid >= rule->mbr_subject.mbs_uid_min) || in ugidfw_rulecheck() 332 vap->va_uid == cred->cr_ruid || in ugidfw_rulecheck() 410 " on %d:%d failed. \n", cred->cr_ruid, in ugidfw_rulecheck()
|
| /freebsd-10-stable/sys/fs/tmpfs/ |
| D | tmpfs_vfsops.c | 174 if (mp->mnt_cred->cr_ruid != 0 || in tmpfs_mount() 177 if (mp->mnt_cred->cr_ruid != 0 || in tmpfs_mount() 180 if (mp->mnt_cred->cr_ruid != 0 || in tmpfs_mount()
|
| /freebsd-10-stable/sys/cddl/compat/opensolaris/sys/ |
| D | cred.h | 49 #define crgetruid(cred) ((cred)->cr_ruid)
|
| /freebsd-10-stable/sys/sys/ |
| D | ucred.h | 51 uid_t cr_ruid; /* real user id */ member
|
| /freebsd-10-stable/cddl/lib/libdtrace/ |
| D | psinfo.d | 55 pr_uid = T->p_ucred->cr_ruid;
|
| /freebsd-10-stable/sys/rpc/ |
| D | svc_auth.c | 179 cr->cr_uid = cr->cr_ruid = cr->cr_svuid = xcr->cr_uid; in svc_getcred()
|
| /freebsd-10-stable/sys/ufs/ufs/ |
| D | ufs_vfsops.c | 110 id = td->td_ucred->cr_ruid;
|
| /freebsd-10-stable/sys/fs/unionfs/ |
| D | union_vfsops.c | 172 if (mp->mnt_cred->cr_ruid == 0) { /* root only */ in unionfs_domount() 224 uid = mp->mnt_cred->cr_ruid; in unionfs_domount()
|
| /freebsd-10-stable/sys/fs/procfs/ |
| D | procfs_status.c | 146 (u_long)cr->cr_ruid, in procfs_doprocstatus()
|
| D | procfs_map.c | 228 cred ? "CH":"NCH", cred ? cred->cr_ruid : -1); in procfs_doprocmap()
|
| /freebsd-10-stable/sys/compat/svr4/ |
| D | svr4_sysvec.c | 237 AUXARGS_ENTRY(pos, AT_UID, imgp->proc->p_ucred->cr_ruid); in svr4_fixup()
|
| /freebsd-10-stable/sys/fs/fuse/ |
| D | fuse_internal.h | 182 basecred->cr_uid == usercred->cr_ruid && in fuse_match_cred()
|
| /freebsd-10-stable/sys/compat/linux/ |
| D | linux_signal.c | 567 ksi.ksi_uid = td->td_proc->p_ucred->cr_ruid; in linux_tgkill() 602 ksi.ksi_uid = td->td_proc->p_ucred->cr_ruid; in linux_tkill()
|
| D | linux_uid16.c | 311 td->td_retval[0] = td->td_ucred->cr_ruid; in linux_getuid16()
|
| /freebsd-10-stable/tools/debugscripts/ |
| D | gdbinit.kernel | 213 $proc.p_ucred->cr_ruid, $pptr->p_pid, \ 255 $proc.p_uarea, $proc.p_ucred->cr_ruid, $pptr->p_pid, \
|
| /freebsd-10-stable/sys/ddb/ |
| D | db_ps.c | 136 cred != NULL ? cred->cr_ruid : 0); in db_ps()
|
| /freebsd-10-stable/sys/security/audit/ |
| D | audit.c | 230 ar->k_ar.ar_subj_ruid = cred->cr_ruid; in audit_record_ctor()
|