/illumos-gate/usr/src/uts/common/syscall/ |
H A D | uid.c | 92 newcr->cr_uid = uid; in setuid() 125 if (cr->cr_uid != uid || in setuid() 134 newcr->cr_uid = uid; in setuid() 184 r.r_val2 = cr->cr_uid; in getuid() 220 if (uid == cr->cr_ruid || uid == cr->cr_uid || uid == cr->cr_suid || in seteuid() 231 if (cr->cr_uid != uid && error == 0) in seteuid() 236 newcr->cr_uid = uid; 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() 348 newcr->cr_uid = euid; in setreuid() [all …]
|
H A D | access.c | 80 (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 D | ppriv.c | 168 cr->cr_uid != 0 && cr->cr_ruid != 0 && cr->cr_suid != 0) { in setppriv()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | priv.c | 585 idsmatch = (scr->cr_uid == tcr->cr_uid && in priv_proc_cred_perm() 586 scr->cr_uid == tcr->cr_ruid && in priv_proc_cred_perm() 587 scr->cr_uid == tcr->cr_suid && in priv_proc_cred_perm() 645 if (cr->cr_uid == 0) in priv_set_PA() 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() 663 (cr->cr_uid != 0 || priv_isequalset(&CR_EPRIV(cr), &CR_LPRIV(cr)))); in priv_can_clear_PA() 693 if (cr->cr_suid == 0 || cr->cr_ruid == 0 || cr->cr_uid == 0) { in priv_adjust_PA() 694 if (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() [all …]
|
H A D | policy.c | 327 cr->cr_uid, curthread->t_sysnum, msg, sym, off); in priv_policy_errmsg() 332 cmn_err(CE_NOTE, fmt, cmd, me->p_pid, pname, cr->cr_uid, in priv_policy_errmsg() 972 if (owner == 0 && cr->cr_uid != 0) in secpolicy_vnode_access() 1035 if (owner == 0 && cr->cr_uid != 0) in secpolicy_vnode_access2() 1079 if (owner == cr->cr_uid) in secpolicy_vnode_any_access() 1123 if (owner == cr->cr_uid) in secpolicy_vnode_setid_modify() 1236 if (owner == cred->cr_uid) in secpolicy_vnode_setdac() 1258 if (owner_implicit_rights && owner == cred->cr_uid) in secpolicy_vnode_setdac3() 1295 if (owner == cr->cr_uid) in secpolicy_vnode_owner() 1511 } else if (cr->cr_uid != ovap->va_uid) { in secpolicy_vnode_setattr() [all …]
|
H A D | cred.c | 195 dummycr->cr_uid = (uid_t)-1; in cred_init() 603 if (scrp->cr_uid == tcrp->cr_ruid || in hasprocperm() 605 scrp->cr_uid == tcrp->cr_suid || in hasprocperm() 659 if (cr1->cr_uid == cr2->cr_uid && in crcmp() 680 return (cr->cr_uid); in crgetuid() 729 (cr->cr_uid == -1 ? (zoneid_t)-1 : GLOBAL_ZONEID) : in crgetzoneid() 775 cr->cr_uid = e; in crsetresuid() 812 cr->cr_uid = cr->cr_ruid = cr->cr_suid = uid; in crsetugid() 884 pcrp->pr_euid = cr->cr_uid; in cred2prcred() 1044 if (cr->cr_uid == 0 && cr->cr_ruid != 0) { in crnetadjust() [all …]
|
H A D | exec.c | 718 cred->cr_uid = uid; in gexec() 789 "file=%s", cred->cr_uid, path); in gexec() 793 "fs=%s, file=%s", cred->cr_uid, in gexec() 802 pp->p_zone->zone_name, cred->cr_uid, in gexec() 808 cred->cr_uid, refstr_value(mntpt), in gexec() 851 if (cred->cr_uid != cred->cr_ruid || (cred->cr_rgid != cred->cr_gid && in gexec() 929 cred->cr_suid = cred->cr_uid; in gexec() 939 if (cred->cr_ruid != cred->cr_uid || in gexec() 1122 uid = cr->cr_uid; in execsetid() 1203 (cr->cr_uid != uid || in execsetid()
|
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | cred.c | 33 uid_t cr_uid; member 76 return (cr->cr_uid); in crgetuid() 83 return (cr->cr_uid); in crgetruid()
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/nfs/ |
H A D | tst.call3.d | 51 printf("noi_cred->cr_uid: %d\n", args[1]->noi_cred->cr_uid); 64 printf("noi_cred->cr_uid: %d\n", args[1]->noi_cred->cr_uid);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | priv_impl.h | 70 #define PRIV_EISAWARE(c) ((CR_FLAGS(c) & PRIV_AWARE) || (c)->cr_uid != 0) 72 ((c)->cr_uid != 0 && (c)->cr_suid != 0 && \
|
H A D | cred_impl.h | 77 uid_t cr_uid; /* effective user id */ member
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | cred.c | 97 cr->cr_uid, cr->cr_gid, in cmd_cred()
|
H A D | gcore.c | 1613 prcp->pr_euid = cr.cr_uid; in Pcred_gcore() 1795 psp->pr_euid = cr.cr_uid; in Ppsinfo_gcore()
|
H A D | genunix.c | 389 cred.cr_uid, pr.p_flag, addr, in ps()
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | ip.d.in | 216 C->ixa_cred->cr_uid == -1 ?
|
H A D | procfs.d.in | 227 pr_euid = T->p_cred->cr_uid;
|
/illumos-gate/usr/src/uts/common/dtrace/ |
H A D | dtrace.c | 1378 s_cr->cr_uid == cr->cr_uid && in dtrace_priv_proc_common_user() 1379 s_cr->cr_uid == cr->cr_ruid && in dtrace_priv_proc_common_user() 1380 s_cr->cr_uid == cr->cr_suid && in dtrace_priv_proc_common_user() 1568 s_cr->cr_uid != cr->cr_uid || in dtrace_priv_probe() 1569 s_cr->cr_uid != cr->cr_ruid || in dtrace_priv_probe() 1570 s_cr->cr_uid != cr->cr_suid || in dtrace_priv_probe() 3500 return ((uint64_t)p0.p_cred->cr_uid); in dtrace_dif_variable() 3511 return ((uint64_t)curthread->t_procp->p_cred->cr_uid); in dtrace_dif_variable()
|
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/ |
H A D | uds_daemon.c | 5067 request->uid = x.cr_uid; // save the effective userid of the client in connect_callback() 5070 debugf("LOCAL_PEERCRED %d %u %u %d", xucredlen, x.cr_version, x.cr_uid, x.cr_ngroups); in connect_callback()
|