Searched refs:euid (Results 1 - 25 of 63) sorted by relevance

123

/illumos-gate/usr/src/cmd/dtrace/test/tst/common/scripting/
H A Dtst.euid.d42 printf("The euid is %d\n", $euid);
H A Dtst.euid.ksh32 # To verify euid of current process
54 /\$euid != \$1/
60 /\$euid == \$1/
/illumos-gate/usr/src/ucbcmd/whoami/
H A Dwhoami.c34 uid_t euid; local
43 euid = geteuid();
44 pp = getpwuid(euid);
46 (void) printf(gettext(MSG), euid); local
/illumos-gate/usr/src/lib/libnsl/dial/
H A Dstrsave.c64 uid_t euid; local
70 if ((euid = geteuid()) == 0) /* root can do all */
72 if (euid == s.st_uid)
/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/lib/libast/common/preroot/
H A Dispreroot.c45 int euid; local
51 if ((ruid = getuid()) != (euid = geteuid())) setuid(ruid);
53 if (ruid != euid) setuid(euid);
H A Dgetpreroot.c69 int euid; local
82 if ((ruid = getuid()) != (euid = geteuid())) setuid(ruid);
115 if (ruid != euid) setuid(euid);
156 if (ruid != euid) setuid(euid);
/illumos-gate/usr/src/lib/libast/common/comp/
H A Deaccess.c24 * access() euid/egid implementation
57 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/uts/common/syscall/
H A Duid.c264 setreuid(uid_t ruid, uid_t euid) argument
277 (euid != -1 && !VALID_UID(euid, zone)))
280 if (euid != -1 && euid > MAXUID) {
281 if (ksid_lookupbyuid(zone, euid, &ksid) != 0)
309 } else if (euid != -1 &&
310 euid != cr->cr_ruid && euid != cr->cr_uid &&
311 euid !
[all...]
/illumos-gate/usr/src/cmd/vntsd/
H A Dauth.c154 * euid The effective UID of a user account to check authorization
161 auth_check_euid(uid_t euid, char *group_name) argument
167 if (euid == (uid_t)-1) {
172 passwdp = getpwuid(euid);
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dregress.c81 "[102:euid?The intercept effective uid is set to \aoriginal-euid\a. The "
84 "intercepts are:]#?[original-euid:=1]"
88 "\aoriginal-euid\a.]"
91 "\aoriginal-euid\a.]"
119 "euid",
192 * euid intercepts
205 TRACE(euid, "geteuid", ("%s", intercept_euid == intercept_ruid ? "euid==ruid" : "euid!
[all...]
/illumos-gate/usr/src/lib/libadt_jni/com/sun/audit/
H A DAuditSession.java67 int euid, int egid, int ruid, int rgid,
204 public void setUser(int euid, int egid, int ruid, int rgid, argument
209 sessionAttr(sh, euid, egid, ruid, rgid,
66 sessionAttr(byte[] sessionHandle, int euid, int egid, int ruid, int rgid, String hostname, int context) argument
/illumos-gate/usr/src/cmd/id/
H A Did.c72 uid_t uid, euid; local
151 uid = euid = pwp->pw_uid;
156 euid = geteuid();
162 uid = euid;
191 if (uid != euid)
192 prid(EUID, euid);
339 s = " euid";
/illumos-gate/usr/src/cmd/auditreduce/
H A Dtoken.c902 * euid adr_int32
913 int32_t auid, euid, egid, ruid, rgid, pid; local
918 adrm_int32(adr, &euid, 1);
932 if (m_usere == euid)
957 ((obj_owner == euid) ||
969 * euid adr_int32
983 int32_t auid, euid, egid, ruid, rgid, pid; local
989 adrm_int32(adr, &euid, 1);
1004 if (m_usere == euid)
1029 ((obj_owner == euid) ||
1052 int32_t auid, euid, egid, ruid, rgid, pid; local
1123 int32_t auid, euid, egid, ruid, rgid, pid; local
1304 int32_t auid, euid, egid, ruid, rgid, pid; local
1367 int32_t auid, euid, egid, ruid, rgid, pid; local
1429 int32_t auid, euid, egid, ruid, rgid, pid; local
1493 int32_t auid, euid, egid, ruid, rgid, pid; local
[all...]
/illumos-gate/usr/src/cmd/sgs/rtld/i386/
H A D_setup.c72 uid_t uid = (uid_t)-1, euid = (uid_t)-1; local
128 euid = (uid_t)auxv->a_un.a_val;
238 _execname, _argv, uid, euid, gid, egid, NULL, auxflags,
/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/sgs/rtld/sparcv9/
H A D_setup.c72 uid_t uid = (uid_t)-1, euid = (uid_t)-1; local
128 euid = (uid_t)auxv->a_un.a_val;
230 _execname, _argv, uid, euid, gid, egid, NULL, auxflags,
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_crontab.c171 uid_t euid; local
176 euid = geteuid();
214 (void) seteuid(euid);
H A Daudit_ftpd.c155 ceuid = geteuid(); /* save current euid */
248 uid_t euid; local
274 euid = geteuid();
283 (void) au_write(rd, au_to_subject_ex(info.ai_auid, euid,
/illumos-gate/usr/src/cmd/sendmail/libsmdb/
H A Dsmdb.c128 int euid = (int) geteuid();
130 syslog(LOG_ERR, "cannot lockf(%s%s, fd=%d, type=%o, omode=%o, euid=%d)",
131 filename, ext, fd, type, omode, euid);
148 int euid = (int) geteuid();
150 syslog(LOG_ERR, "cannot flock(%s%s, fd=%d, type=%o, omode=%o, euid=%d)",
151 filename, ext, fd, type, omode, euid);
/illumos-gate/usr/src/cmd/sh/
H A Dmain.c190 uid_t euid; local
199 * If the effective uid/gid do NOT match and the euid/egid
203 euid = geteuid();
207 if ((euid != ruid) && (euid < 100))
/illumos-gate/usr/src/cmd/pfexecd/
H A Dpfexecd.c354 uid_t uid, euid, uuid; local
402 uid = euid = (uid_t)-1;
411 euid = uid = get_uid(value, &res->pfr_allowed, path);
417 euid = get_uid(value, &res->pfr_allowed, path);
432 res->pfr_scrubenv = (uid != (uid_t)-1 && euid == uid) ||
435 res->pfr_euid = euid;
455 res->pfr_setcred = uid != (uid_t)-1 || euid != (uid_t)-1 ||
/illumos-gate/usr/src/lib/libcmd/common/
H A Did.c212 uid_t euid; local
331 if ((euid = geteuid()) != user)
332 putid(sp, flags, " euid", (pw = getpwuid(euid)) ? pw->pw_name : (char*)0, euid);
/illumos-gate/usr/src/cmd/tip/
H A Dcu.c107 euid = geteuid();
/illumos-gate/usr/src/cmd/streams/strcmd/
H A Dstrchg.c115 int euid; /* effective uid */ local
144 if ((euid = geteuid()) != 0) {
151 if (euid != stats.st_uid) {

Completed in 136 milliseconds

123