Home
last modified time | relevance | path

Searched refs:cr_ruid (Results 1 – 25 of 57) 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.c257 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 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 || \
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 Dmac_seeotheruids.c119 if (cr1->cr_ruid == cr2->cr_ruid) in seeotheruids_check()
/freebsd/sys/rpc/
H A Dsvc_auth.c193 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 Dmac_bsdextended.c238 (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 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/sys/ufs/ufs/
H A Dufs_vfsops.c97 id = td->td_ucred->cr_ruid; in ufs_quotactl()
/freebsd/cddl/lib/libdtrace/
H A Dpsinfo.d55 pr_uid = T->p_ucred->cr_ruid;
/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/fs/procfs/
H A Dprocfs_status.c142 (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/sys/
H A Ducred.h81 uid_t cr_ruid; /* real user id */ member
/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, \
/freebsd/sys/security/mac_do/
H A Dmac_do.c1839 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()

123