Home
last modified time | relevance | path

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

123

/freebsd-10-stable/sys/kern/
Dkern_prot.c222 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 …]
Dkern_priv.c130 if (cred->cr_ruid == 0) { in priv_check_cred()
Dkern_thr.c390 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()
Dkern_sig.c165 (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()
Dsys_procdesc.c501 sb->st_uid = pd->pd_proc->p_ucred->cr_ruid; in procdesc_stat()
Dkern_acct.c414 acct.ac_uid = p->p_ucred->cr_ruid; in acct_process()
/freebsd-10-stable/tools/regression/security/proc_to_proc/
Dscenario.c49 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/
Dmac_seeotheruids.c122 if (cr1->cr_ruid == cr2->cr_ruid) in seeotheruids_check()
/freebsd-10-stable/sys/security/mac_bsdextended/
Dmac_bsdextended.c242 (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/
Dtmpfs_vfsops.c174 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/
Dcred.h49 #define crgetruid(cred) ((cred)->cr_ruid)
/freebsd-10-stable/sys/sys/
Ducred.h51 uid_t cr_ruid; /* real user id */ member
/freebsd-10-stable/cddl/lib/libdtrace/
Dpsinfo.d55 pr_uid = T->p_ucred->cr_ruid;
/freebsd-10-stable/sys/rpc/
Dsvc_auth.c179 cr->cr_uid = cr->cr_ruid = cr->cr_svuid = xcr->cr_uid; in svc_getcred()
/freebsd-10-stable/sys/ufs/ufs/
Dufs_vfsops.c110 id = td->td_ucred->cr_ruid;
/freebsd-10-stable/sys/fs/unionfs/
Dunion_vfsops.c172 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/
Dprocfs_status.c146 (u_long)cr->cr_ruid, in procfs_doprocstatus()
Dprocfs_map.c228 cred ? "CH":"NCH", cred ? cred->cr_ruid : -1); in procfs_doprocmap()
/freebsd-10-stable/sys/compat/svr4/
Dsvr4_sysvec.c237 AUXARGS_ENTRY(pos, AT_UID, imgp->proc->p_ucred->cr_ruid); in svr4_fixup()
/freebsd-10-stable/sys/fs/fuse/
Dfuse_internal.h182 basecred->cr_uid == usercred->cr_ruid && in fuse_match_cred()
/freebsd-10-stable/sys/compat/linux/
Dlinux_signal.c567 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()
Dlinux_uid16.c311 td->td_retval[0] = td->td_ucred->cr_ruid; in linux_getuid16()
/freebsd-10-stable/tools/debugscripts/
Dgdbinit.kernel213 $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/
Ddb_ps.c136 cred != NULL ? cred->cr_ruid : 0); in db_ps()
/freebsd-10-stable/sys/security/audit/
Daudit.c230 ar->k_ar.ar_subj_ruid = cred->cr_ruid; in audit_record_ctor()

123