Home
last modified time | relevance | path

Searched refs:euid (Results 1 – 25 of 72) sorted by relevance

123

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/
H A Dksh-regress.tst21 ksh:REGRESS:euid:geteuid:euid!=ruid'
29 ksh:REGRESS:euid:geteuid:euid!=ruid
31 ksh:REGRESS:euid:setuid:euid==ruid'
39 ksh:REGRESS:euid:geteuid:euid!=ruid
46 ksh:REGRESS:euid:geteuid:euid!=ruid'
54 ksh:REGRESS:euid:geteuid:euid!=ruid
56 ksh:REGRESS:euid:setuid:euid==ruid'
64 ksh:REGRESS:euid:geteuid:euid!=ruid
109 ksh:REGRESS:euid:geteuid:euid!=ruid
111 ksh:REGRESS:euid:setuid:euid==ruid'
[all …]
H A Dksh-regress.rt24 "euid=0"
25 "euid=0 p_suid=0"
26 "euid=0 p_suid=99999"
27 "euid=1"
28 "euid=1 p_suid=0"
29 "euid=1 p_suid=99999"
69 EXEC --regress=etc=. --regress=euid=1 --privileged <<!
/illumos-gate/usr/src/lib/libsecdb/
H A Dexec_attr.txt38 Cron Management:suser:cmd:::/usr/bin/crontab:euid=0
40 Crypto Management:suser:cmd:::/usr/bin/kmfcfg:euid=0
57 Device Security:suser:cmd:::/usr/sbin/strace:euid=0
144 Log Management:suser:cmd:::/usr/sbin/logadm:euid=0
168 Media Backup:suser:cmd:::/usr/bin/mt:euid=0
170 Media Backup:suser:cmd:::/usr/sbin/tar:euid=0
173 Media Restore:suser:cmd:::/usr/bin/cpio:euid=0
174 Media Restore:suser:cmd:::/usr/bin/mt:euid=0
176 Media Restore:suser:cmd:::/usr/sbin/tar:euid=0
260 Process Management:suser:cmd:::/usr/bin/ps:euid=0
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Duid.c264 setreuid(uid_t ruid, uid_t euid) in setreuid() argument
277 (euid != -1 && !VALID_UID(euid, zone))) in setreuid()
280 if (euid != -1 && euid > MAXUID) { in setreuid()
281 if (ksid_lookupbyuid(zone, euid, &ksid) != 0) in setreuid()
309 } else if (euid != -1 && in setreuid()
310 euid != cr->cr_ruid && euid != cr->cr_uid && in setreuid()
311 euid != cr->cr_suid && secpolicy_allow_setid(cr, euid, B_FALSE)) { in setreuid()
347 if (euid != -1) { in setreuid()
348 newcr->cr_uid = euid; in setreuid()
366 (euid != -1 && newcr->cr_uid != newcr->cr_ruid)) in setreuid()
[all …]
/illumos-gate/usr/src/ucbcmd/whoami/
H A Dwhoami.c34 uid_t euid; in main() local
43 euid = geteuid(); in main()
44 pp = getpwuid(euid); in main()
46 (void) printf(gettext(MSG), euid); in main()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/preroot/
H A Dispreroot.c45 int euid; in same() local
51 if ((ruid = getuid()) != (euid = geteuid())) setuid(ruid); in same()
53 if (ruid != euid) setuid(euid); in same()
H A Dgetpreroot.c69 int euid; in getpreroot() local
82 if ((ruid = getuid()) != (euid = geteuid())) setuid(ruid); in getpreroot()
115 if (ruid != euid) setuid(euid); in getpreroot()
156 if (ruid != euid) setuid(euid); in getpreroot()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Deaccess.c57 static uid_t euid;
64 euid = geteuid();
67 init = (ruid == euid && rgid == egid) ? 1 : -1;
74 if (euid == 0)
80 else if (euid == st.st_uid)
/illumos-gate/usr/src/cmd/auditreduce/
H A Dtoken.c918 adrm_int32(adr, &euid, 1); in process32_token()
932 if (m_usere == euid) in process32_token()
989 adrm_int32(adr, &euid, 1); in process32_ex_token()
1004 if (m_usere == euid) in process32_ex_token()
1058 adrm_int32(adr, &euid, 1); in process64_token()
1072 if (m_usere == euid) in process64_token()
1145 if (m_usere == euid) in process64_ex_token()
1327 if (m_usere == euid) in subject32_token()
1392 if (m_usere == euid) in subject32_ex_token()
1453 if (m_usere == euid) in subject64_token()
[all …]
/illumos-gate/usr/src/lib/libnsl/dial/
H A Dstrsave.c64 uid_t euid; in eaccess() local
70 if ((euid = geteuid()) == 0) /* root can do all */ in eaccess()
72 if (euid == s.st_uid) in eaccess()
/illumos-gate/usr/src/cmd/bnu/
H A Dstrsave.c66 uid_t euid; local
72 if( (euid = geteuid()) == 0 )
74 if( euid == s.st_uid )
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dregress.c205 TRACE(euid, "geteuid", ("%s", intercept_euid == intercept_ruid ? "euid==ruid" : "euid!=ruid")); in geteuid()
219 TRACE(euid, "setuid", ("%s", "EPERM")); in setuid()
224 TRACE(euid, "setuid", ("%s", intercept_euid == intercept_ruid ? "euid==ruid" : "euid!=ruid")); in setuid()
302 TRACE(euid, argv[0], ("%d", intercept_euid)); in b___regress__()
305 TRACE(euid, argv[0], ("%s", "off")); in b___regress__()
/illumos-gate/usr/src/cmd/id/
H A Did.c72 uid_t uid, euid; in main() local
151 uid = euid = pwp->pw_uid; in main()
156 euid = geteuid(); in main()
162 uid = euid; in main()
191 if (uid != euid) in main()
192 prid(EUID, euid); in main()
/illumos-gate/usr/src/cmd/vntsd/
H A Dauth.c161 auth_check_euid(uid_t euid, char *group_name) in auth_check_euid() argument
167 if (euid == (uid_t)-1) { in auth_check_euid()
172 passwdp = getpwuid(euid); in auth_check_euid()
/illumos-gate/usr/src/lib/libadt_jni/com/sun/audit/
H A DAuditSession.java67 int euid, int egid, int ruid, int rgid, in sessionAttr() argument
204 public void setUser(int euid, int egid, int ruid, int rgid, in setUser() argument
209 sessionAttr(sh, euid, egid, ruid, rgid, in setUser()
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/scripting/
H A Dtst.euid.ksh54 /\$euid != \$1/
60 /\$euid == \$1/
/illumos-gate/usr/src/cmd/pfexecd/
H A Dpfexecd.c354 uid_t uid, euid, uuid; in callback_pfexec() local
402 uid = euid = (uid_t)-1; in callback_pfexec()
411 euid = uid = get_uid(value, &res->pfr_allowed, path); in callback_pfexec()
417 euid = get_uid(value, &res->pfr_allowed, path); in callback_pfexec()
432 res->pfr_scrubenv = (uid != (uid_t)-1 && euid == uid) || in callback_pfexec()
435 res->pfr_euid = euid; in callback_pfexec()
455 res->pfr_setcred = uid != (uid_t)-1 || euid != (uid_t)-1 || in callback_pfexec()
/illumos-gate/usr/src/cmd/sgs/rtld/i386/
H A D_setup.c72 uid_t uid = (uid_t)-1, euid = (uid_t)-1; in _setup() local
128 euid = (uid_t)auxv->a_un.a_val; in _setup()
238 _execname, _argv, uid, euid, gid, egid, NULL, auxflags, in _setup()
/illumos-gate/usr/src/cmd/sgs/rtld/sparcv9/
H A D_setup.c72 uid_t uid = (uid_t)-1, euid = (uid_t)-1; in _setup() local
128 euid = (uid_t)auxv->a_un.a_val; in _setup()
230 _execname, _argv, uid, euid, gid, egid, NULL, auxflags, in _setup()
/illumos-gate/usr/src/cmd/sendmail/libsmdb/
H A Dsmdb.c128 int euid = (int) geteuid();
131 filename, ext, fd, type, omode, euid);
148 int euid = (int) geteuid();
151 filename, ext, fd, type, omode, euid);
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_crontab.c171 uid_t euid; in audit_crontab_get_diffs() local
176 euid = geteuid(); in audit_crontab_get_diffs()
214 (void) seteuid(euid); in audit_crontab_get_diffs()
H A Daudit_ftpd.c248 uid_t euid; in audit_ftpd_logout() local
274 euid = geteuid(); in audit_ftpd_logout()
283 (void) au_write(rd, au_to_subject_ex(info.ai_auid, euid, in audit_ftpd_logout()
/illumos-gate/usr/src/cmd/sgs/rtld/sparc/
H A D_setup.c75 uid_t uid = (uid_t)-1, euid = (uid_t)-1; local
139 euid = (uid_t)auxv->a_un.a_val;
242 _execname, _argv, uid, euid, gid, egid,
/illumos-gate/usr/src/cmd/sh/
H A Dmain.c190 uid_t euid; in main() local
203 euid = geteuid(); in main()
207 if ((euid != ruid) && (euid < 100)) in main()
/illumos-gate/usr/src/cmd/tip/
H A Dcu.c15 int uid, euid; variable
107 euid = geteuid(); in cumain()

123