Home
last modified time | relevance | path

Searched refs:cr_ruid (Results 1 – 25 of 56) sorted by relevance

123

/freebsd/tools/regression/security/proc_to_proc/
H A Dscenario.c47 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 Dkern_prot.c237 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 Dkern_thr.c401 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 Dkern_priv.c218 if (cred->cr_ruid == 0) { in priv_check_cred()
H A Dkern_acct.c408 acct.ac_uid = p->p_ucred->cr_ruid; in acct_process()
H A Dkern_sig.c184 (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 Dsys_procdesc.c537 sb->st_uid = pd->pd_proc->p_ucred->cr_ruid; in procdesc_stat()
/freebsd/sys/security/mac_seeotheruids/
H A Dmac_seeotheruids.c121 if (cr1->cr_ruid == cr2->cr_ruid) in seeotheruids_check()
/freebsd/sys/rpc/
H A Dsvc_auth.c191 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 Dmac_bsdextended.c240 (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 Dcred.h60 #define crgetruid(cr) ((cr)->cr_ruid)
/freebsd/sys/cddl/compat/opensolaris/sys/
H A Dcred.h47 #define crgetruid(cred) ((cred)->cr_ruid)
/freebsd/cddl/lib/libdtrace/
H A Dpsinfo.d55 pr_uid = T->p_ucred->cr_ruid;
/freebsd/sys/ufs/ufs/
H A Dufs_vfsops.c97 id = td->td_ucred->cr_ruid; in ufs_quotactl()
/freebsd/sys/fs/tmpfs/
H A Dtmpfs_vfsops.c393 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 Ducred.h67 uid_t cr_ruid; /* real user id */ member
/freebsd/sys/fs/procfs/
H A Dprocfs_status.c146 (u_long)cr->cr_ruid, in procfs_doprocstatus()
H A Dprocfs_map.c221 cred ? "CH":"NCH", cred ? cred->cr_ruid : -1); in procfs_doprocmap()
/freebsd/sys/fs/unionfs/
H A Dunion_vfsops.c168 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 Dlinux_signal.c803 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 Dlinux_uid16.c207 td->td_retval[0] = td->td_ucred->cr_ruid; in linux_getuid16()
/freebsd/sys/fs/fuse/
H A Dfuse_internal.h209 basecred->cr_uid == usercred->cr_ruid && in fuse_match_cred()
/freebsd/sys/security/mac_veriexec/
H A Dveriexec_fingerprint.c119 imgp->attr->va_gen, td->td_ucred->cr_ruid, imgp->proc->p_pid, in identify_error()
/freebsd/sys/fs/tarfs/
H A Dtarfs_vfsops.c960 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 Dgdbinit.kernel211 $proc.p_ucred->cr_ruid, \
255 $proc.p_uarea, $proc.p_ucred->cr_ruid, $pptr->p_pid, \

123