/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 | 257 td->td_retval[0] = td->td_ucred->cr_ruid; in sys_getuid() 911 if (uid != oldcred->cr_ruid && /* allow setuid(getuid()) */ in sys_setuid() 937 if (uid != oldcred->cr_ruid) { in sys_setuid() 1016 if (euid != oldcred->cr_ruid && /* allow seteuid(getuid()) */ in sys_seteuid() 1322 if (((ruid != (uid_t)-1 && ruid != oldcred->cr_ruid && in sys_setreuid() 1325 euid != oldcred->cr_ruid && euid != oldcred->cr_svuid)) && in sys_setreuid() 1333 if (ruid != (uid_t)-1 && oldcred->cr_ruid != ruid) { in sys_setreuid() 1337 if ((ruid != (uid_t)-1 || newcred->cr_uid != newcred->cr_ruid) && in sys_setreuid() 1464 if (((ruid != (uid_t)-1 && ruid != oldcred->cr_ruid && in sys_setresuid() 1467 (euid != (uid_t)-1 && euid != oldcred->cr_ruid && in sys_setresuid() [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 || \ 1934 ksi.ksi_uid = td->td_ucred->cr_ruid; in kern_kill() 2002 ksi.ksi_uid = td->td_ucred->cr_ruid; in okillpg() 2062 ksi.ksi_uid = td->td_ucred->cr_ruid; in kern_sigqueue() 3686 p->p_ksi->ksi_uid = p->p_ucred->cr_ruid; in sigparent()
|
/freebsd/sys/security/mac_seeotheruids/ |
H A D | mac_seeotheruids.c | 119 if (cr1->cr_ruid == cr2->cr_ruid) in seeotheruids_check()
|
/freebsd/sys/rpc/ |
H A D | svc_auth.c | 193 cr->cr_uid = cr->cr_ruid = cr->cr_svuid = xprt->xp_uid; in svc_getcred() 208 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 | 238 (cred->cr_ruid <= rule->mbr_subject.mbs_uid_max && in ugidfw_rulecheck() 239 cred->cr_ruid >= rule->mbr_subject.mbs_uid_min) || in ugidfw_rulecheck() 327 vap->va_uid == cred->cr_ruid || in ugidfw_rulecheck() 404 " 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/sys/ufs/ufs/ |
H A D | ufs_vfsops.c | 97 id = td->td_ucred->cr_ruid; in ufs_quotactl()
|
/freebsd/cddl/lib/libdtrace/ |
H A D | psinfo.d | 55 pr_uid = T->p_ucred->cr_ruid;
|
/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/fs/procfs/ |
H A D | procfs_status.c | 142 (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/sys/ |
H A D | ucred.h | 81 uid_t cr_ruid; /* real user id */ member
|
/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, \
|
/freebsd/sys/security/mac_do/ |
H A D | mac_do.c | 1839 return (uid == old_cred->cr_uid || uid == old_cred->cr_ruid || in user_is_current() 1882 error = rule_grant_user(rule, old_cred, new_cred->cr_ruid); in rule_grant_users() 1914 if (rule->from_type == IT_UID && rule->from_id == cred->cr_ruid) in rule_applies()
|