Home
last modified time | relevance | path

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

/illumos-gate/usr/src/uts/common/syscall/
H A Duid.c83 if ((uid == cr->cr_ruid || uid == cr->cr_suid) && in setuid()
100 if (!uidchge && uid != cr->cr_ruid) { in setuid()
126 cr->cr_ruid != uid || in setuid()
129 oldruid = cr->cr_ruid; in setuid()
132 newcr->cr_ruid = uid; in setuid()
183 r.r_val1 = cr->cr_ruid; in getuid()
220 if (uid == cr->cr_ruid || uid == cr->cr_uid || uid == cr->cr_suid || in seteuid()
302 if (ruid != -1 && ruid != cr->cr_ruid && ruid != cr->cr_uid && in setreuid()
310 euid != cr->cr_ruid && euid != cr->cr_uid && in setreuid()
322 if (!uidchge && ruid != -1 && cr->cr_ruid != ruid) { in setreuid()
[all …]
H A Daccess.c80 (cr->cr_uid == cr->cr_ruid && cr->cr_gid == cr->cr_rgid); in caccess()
86 tmpcr->cr_uid = cr->cr_ruid; in caccess()
88 tmpcr->cr_ruid = cr->cr_uid; in caccess()
H A Dppriv.c168 cr->cr_uid != 0 && cr->cr_ruid != 0 && cr->cr_suid != 0) { in setppriv()
/illumos-gate/usr/src/uts/common/os/
H A Dcred.c197 dummycr->cr_ruid = (uid_t)-1; in cred_init()
603 if (scrp->cr_uid == tcrp->cr_ruid || in hasprocperm()
604 scrp->cr_ruid == tcrp->cr_ruid || in hasprocperm()
606 scrp->cr_ruid == tcrp->cr_suid || in hasprocperm()
661 cr1->cr_ruid == cr2->cr_ruid && in crcmp()
686 return (cr->cr_ruid); in crgetruid()
773 cr->cr_ruid = r; in crsetresuid()
812 cr->cr_uid = cr->cr_ruid = cr->cr_suid = uid; in crsetugid()
885 pcrp->pr_ruid = cr->cr_ruid; in cred2prcred()
1044 if (cr->cr_uid == 0 && cr->cr_ruid != 0) { in crnetadjust()
[all …]
H A Dpriv.c586 scr->cr_uid == tcr->cr_ruid && in priv_proc_cred_perm()
648 if (cr->cr_uid == 0 || cr->cr_suid == 0 || cr->cr_ruid == 0) in priv_set_PA()
661 return ((cr->cr_suid != 0 && cr->cr_ruid != 0 && cr->cr_uid != 0) || in priv_can_clear_PA()
693 if (cr->cr_suid == 0 || cr->cr_ruid == 0 || cr->cr_uid == 0) { in priv_adjust_PA()
732 if (cr->cr_suid == cr->cr_ruid && cr->cr_suid == cr->cr_uid) { in priv_reset_PA()
741 } else if (cr->cr_uid != 0 && (cr->cr_ruid == 0 || cr->cr_suid == 0)) { in priv_reset_PA()
H A Dexec.c851 if (cred->cr_uid != cred->cr_ruid || (cred->cr_rgid != cred->cr_gid && in gexec()
896 oruid = pp->p_cred->cr_ruid; in gexec()
939 if (cred->cr_ruid != cred->cr_uid || in gexec()
948 if (newcred != NULL && oruid != newcred->cr_ruid) { in gexec()
952 upcount_inc(newcred->cr_ruid, crgetzoneid(newcred)); in gexec()
H A Dpolicy.c1724 cr->cr_ruid != 0) { in secpolicy_allow_setid()
1744 (tcr->cr_uid == 0 || tcr->cr_ruid == 0 || tcr->cr_suid == 0)) in secpolicy_proc_owner()
1966 if (cr->cr_ruid == 0) in secpolicy_newproc()
/illumos-gate/usr/src/uts/common/sys/
H A Dcred_impl.h79 uid_t cr_ruid; /* real user id */ member
H A Dpriv_impl.h73 (c)->cr_ruid != 0))
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dcred.c98 cr->cr_ruid, cr->cr_rgid, in cmd_cred()
H A Dgcore.c1614 prcp->pr_ruid = cr.cr_ruid; in Pcred_gcore()
1794 psp->pr_uid = cr.cr_ruid; in Ppsinfo_gcore()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Dprocfs.d.in226 pr_uid = T->p_cred->cr_ruid;
/illumos-gate/usr/src/uts/common/dtrace/
H A Ddtrace.c1379 s_cr->cr_uid == cr->cr_ruid && in dtrace_priv_proc_common_user()
1569 s_cr->cr_uid != cr->cr_ruid || in dtrace_priv_probe()