Home
last modified time | relevance | path

Searched refs:cr_suid (Results 1 – 10 of 10) 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()
127 cr->cr_suid != uid) in setuid()
133 newcr->cr_suid = uid; in setuid()
220 if (uid == cr->cr_ruid || uid == cr->cr_uid || uid == cr->cr_suid || in seteuid()
311 euid != cr->cr_suid && secpolicy_allow_setid(cr, euid, B_FALSE)) { in setreuid()
367 newcr->cr_suid = newcr->cr_uid; in setreuid()
374 cr->cr_suid != newcr->cr_suid)) in setreuid()
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 Dpriv.c587 scr->cr_uid == tcr->cr_suid && 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 Dcred.c199 dummycr->cr_suid = (uid_t)-1; in cred_init()
605 scrp->cr_uid == tcrp->cr_suid || in hasprocperm()
606 scrp->cr_ruid == tcrp->cr_suid || in hasprocperm()
692 return (cr->cr_suid); in crgetsuid()
777 cr->cr_suid = s; in crsetresuid()
812 cr->cr_uid = cr->cr_ruid = cr->cr_suid = uid; in crsetugid()
886 pcrp->pr_suid = cr->cr_suid; in cred2prcred()
H A Dexec.c720 cred->cr_suid = uid; in gexec()
929 cred->cr_suid = cred->cr_uid; in gexec()
1205 cr->cr_suid != uid || in execsetid()
H A Dpolicy.c1723 if (newuid == 0 && cr->cr_uid != 0 && cr->cr_suid != 0 && in secpolicy_allow_setid()
1744 (tcr->cr_uid == 0 || tcr->cr_ruid == 0 || tcr->cr_suid == 0)) in secpolicy_proc_owner()
/illumos-gate/usr/src/uts/common/sys/
H A Dcred_impl.h81 uid_t cr_suid; /* "saved" user id (from exec) */ member
H A Dpriv_impl.h72 ((c)->cr_uid != 0 && (c)->cr_suid != 0 && \
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dgcore.c1615 prcp->pr_suid = cr.cr_suid; in Pcred_gcore()
/illumos-gate/usr/src/uts/common/dtrace/
H A Ddtrace.c1380 s_cr->cr_uid == cr->cr_suid && in dtrace_priv_proc_common_user()
1570 s_cr->cr_uid != cr->cr_suid || in dtrace_priv_probe()