/freebsd/tools/regression/security/proc_to_proc/ |
H A D | scenario.c | 47 uid_t cr_euid, cr_ruid, cr_svuid; member 176 error = getresuid(&cred->cr_ruid, &cred->cr_euid, &cred->cr_svuid); in cred_get() 212 error = setresuid(cred->cr_ruid, cred->cr_euid, cred->cr_svuid); in cred_set() 230 assert(ruid == cred->cr_ruid); in cred_set() 248 cred->cr_ruid, cred->cr_svuid, cred->cr_issetugid); in cred_print()
|
/freebsd/sys/kern/ |
H A D | kern_prot.c | 237 td->td_retval[0] = td->td_ucred->cr_ruid; in sys_getuid() 558 if (uid != oldcred->cr_ruid) { in sys_setuid() 1191 error1 = copyout(&cred->cr_ruid, in sys_getresuid() 1192 uap->ruid, sizeof(cred->cr_ruid)); in sys_getresuid() 1382 if (!see_other_uids && u1->cr_ruid != u2->cr_ruid) { in cr_canseeotheruids() 1598 if (cred->cr_ruid != proc->p_ucred->cr_ruid && in cr_cansignal() 1599 cred->cr_ruid != proc->p_ucred->cr_svuid && in cr_cansignal() 1600 cred->cr_uid != proc->p_ucred->cr_ruid && in cr_cansignal() 1677 if (td->td_ucred->cr_ruid != p->p_ucred->cr_ruid && in p_cansched() 1767 td->td_ucred->cr_uid == p->p_ucred->cr_ruid); in p_candebug() [all …]
|
H A D | kern_thr.c | 401 ksi.ksi_uid = td->td_ucred->cr_ruid; in sys_thr_kill() 449 ksi.ksi_uid = td->td_ucred->cr_ruid; in sys_thr_kill2()
|
H A D | kern_priv.c | 218 if (cred->cr_ruid == 0) { in priv_check_cred()
|
H A D | kern_acct.c | 408 acct.ac_uid = p->p_ucred->cr_ruid; in acct_process()
|
H A D | kern_sig.c | 184 (cr1)->cr_ruid == (cr2)->cr_ruid || \ 185 (cr1)->cr_uid == (cr2)->cr_ruid || \ 186 (cr1)->cr_ruid == (cr2)->cr_uid || \ 1924 ksi.ksi_uid = td->td_ucred->cr_ruid; in kern_kill() 1992 ksi.ksi_uid = td->td_ucred->cr_ruid; in okillpg() 2052 ksi.ksi_uid = td->td_ucred->cr_ruid; in kern_sigqueue() 3696 p->p_ksi->ksi_uid = p->p_ucred->cr_ruid; in sigparent()
|
H A D | sys_procdesc.c | 537 sb->st_uid = pd->pd_proc->p_ucred->cr_ruid; in procdesc_stat()
|
/freebsd/sys/security/mac_seeotheruids/ |
H A D | mac_seeotheruids.c | 121 if (cr1->cr_ruid == cr2->cr_ruid) in seeotheruids_check()
|
/freebsd/sys/rpc/ |
H A D | svc_auth.c | 191 cr->cr_uid = cr->cr_ruid = cr->cr_svuid = xprt->xp_uid; in svc_getcred() 204 cr->cr_uid = cr->cr_ruid = cr->cr_svuid = xcr->cr_uid; in svc_getcred()
|
/freebsd/sys/security/mac_bsdextended/ |
H A D | mac_bsdextended.c | 240 (cred->cr_ruid <= rule->mbr_subject.mbs_uid_max && in ugidfw_rulecheck() 241 cred->cr_ruid >= rule->mbr_subject.mbs_uid_min) || in ugidfw_rulecheck() 329 vap->va_uid == cred->cr_ruid || in ugidfw_rulecheck() 406 " on %d:%d failed. \n", cred->cr_ruid, in ugidfw_rulecheck()
|
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | cred.h | 60 #define crgetruid(cr) ((cr)->cr_ruid)
|
/freebsd/sys/cddl/compat/opensolaris/sys/ |
H A D | cred.h | 47 #define crgetruid(cred) ((cred)->cr_ruid)
|
/freebsd/cddl/lib/libdtrace/ |
H A D | psinfo.d | 55 pr_uid = T->p_ucred->cr_ruid;
|
/freebsd/sys/ufs/ufs/ |
H A D | ufs_vfsops.c | 97 id = td->td_ucred->cr_ruid; in ufs_quotactl()
|
/freebsd/sys/fs/tmpfs/ |
H A D | tmpfs_vfsops.c | 393 if (mp->mnt_cred->cr_ruid != 0 || in tmpfs_mount() 396 if (mp->mnt_cred->cr_ruid != 0 || in tmpfs_mount() 399 if (mp->mnt_cred->cr_ruid != 0 || in tmpfs_mount()
|
/freebsd/sys/sys/ |
H A D | ucred.h | 67 uid_t cr_ruid; /* real user id */ member
|
/freebsd/sys/fs/procfs/ |
H A D | procfs_status.c | 146 (u_long)cr->cr_ruid, in procfs_doprocstatus()
|
H A D | procfs_map.c | 221 cred ? "CH":"NCH", cred ? cred->cr_ruid : -1); in procfs_doprocmap()
|
/freebsd/sys/fs/unionfs/ |
H A D | union_vfsops.c | 168 if (mp->mnt_cred->cr_ruid == 0) { /* root only */ in unionfs_domount() 220 uid = mp->mnt_cred->cr_ruid; in unionfs_domount()
|
/freebsd/sys/compat/linux/ |
H A D | linux_signal.c | 803 si->si_uid = td->td_ucred->cr_ruid; in lsiginfo_to_siginfo() 914 ksi.ksi_uid = td->td_proc->p_ucred->cr_ruid; in linux_tdsignal() 954 ksi.ksi_uid = td->td_proc->p_ucred->cr_ruid; in linux_psignal()
|
H A D | linux_uid16.c | 207 td->td_retval[0] = td->td_ucred->cr_ruid; in linux_getuid16()
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_internal.h | 209 basecred->cr_uid == usercred->cr_ruid && in fuse_match_cred()
|
/freebsd/sys/security/mac_veriexec/ |
H A D | veriexec_fingerprint.c | 119 imgp->attr->va_gen, td->td_ucred->cr_ruid, imgp->proc->p_pid, in identify_error()
|
/freebsd/sys/fs/tarfs/ |
H A D | tarfs_vfsops.c | 960 if (mp->mnt_cred->cr_ruid != 0 || in tarfs_mount() 963 if (mp->mnt_cred->cr_ruid != 0 || in tarfs_mount() 966 if (mp->mnt_cred->cr_ruid != 0 || in tarfs_mount()
|
/freebsd/tools/debugscripts/ |
H A D | gdbinit.kernel | 211 $proc.p_ucred->cr_ruid, \ 255 $proc.p_uarea, $proc.p_ucred->cr_ruid, $pptr->p_pid, \
|