Searched refs:geteuid (Results 1 - 25 of 38) sorted by relevance

12

/ast/src/lib/libast/preroot/
H A Dispreroot.c51 if ((ruid = getuid()) != (euid = geteuid())) setuid(ruid);
H A Dgetpreroot.c82 if ((ruid = getuid()) != (euid = geteuid())) setuid(ruid);
/ast/src/lib/libast/path/
H A Dpathshell.c73 eu = geteuid();
H A Dpathprobe.c84 if ((vfs.f_flag & ST_NOSUID) && (stat(path, &st) || st.st_uid != getuid() && st.st_uid != geteuid()))
208 if (op >= -1 && (!(st.st_mode & S_ISUID) && ps.st_uid != geteuid() || rofs(path)))
/ast/src/lib/libast/comp/
H A Deaccess.c64 euid = geteuid();
/ast/src/cmd/at/
H A Datx.c100 error(ERROR_SYSTEM|3, "%s %s user denied (uid=%u euid=%u => uid=%d)", argv[2], error_info.id, getuid(), geteuid(), uid);
H A Datd.c1349 *ap++ = state->con[0].id.uid = geteuid();
1388 if (!(xs.st_mode&S_ISUID) && geteuid() != 0 && geteuid() != xs.st_uid)
1389 error(3, "%s: invalid euid %d -- %d expected", s, geteuid(), xs.st_uid);
1392 error(3, "%s: invalid [ mode=%04o uid=%d euid=%d t1=%04o t2=%04o==%04o ]", s, xs.st_mode, xs.st_uid, geteuid(), S_ISREG(xs.st_mode), xs.st_mode&(S_IXUSR|S_IXGRP|S_IWOTH|S_IXOTH), (S_IXUSR|S_IXGRP|S_IXOTH));
1481 state->con[0].id.uid = geteuid();
/ast/src/lib/libtk/compat/
H A Dunistd.h51 extern uid_t geteuid _ANSI_ARGS_((void));
/ast/src/lib/libcs/
H A Dcslocal.c148 sfsprintf(tmp, sizeof(tmp), "%s/fdp/%s/%s/%d-%d-/%c%s", csvar(state, CS_VAR_LOCAL, 0), csname(state, 0), cmd, st.st_uid, geteuid(), CS_MNT_STREAM, CS_MNT_TAIL);
H A Dcsrecv.c203 st.st_uid = geteuid();
365 id->uid = geteuid();
H A Dcssend.c127 id.uid = geteuid();
H A Dcsopen.c863 n = geteuid();
899 if (geteuid() && gid != n)
918 sid = geteuid();
1203 else if (geteuid())
/ast/src/cmd/ksh93/bltins/
H A Dregress.c86 "[+geteuid()?The intercept effecive uid is returned. The "
199 uid_t geteuid(void) function
205 TRACE(euid, "geteuid", ("%s", intercept_euid == intercept_ruid ? "euid==ruid" : "euid!=ruid"));
/ast/src/cmd/cs/
H A Dcss.c138 if (con->id.uid == geteuid())
H A Dcs.c296 if (ftw->statb.st_uid != geteuid())
/ast/src/lib/libcmd/
H A Did.c278 user = (flags & R_FLAG) ? getuid() : geteuid();
331 if ((euid = geteuid()) != user)
H A Drm.c397 state.uid = geteuid();
H A Dcksum.c563 state.uid = geteuid();
/ast/src/cmd/ksh93/sh/
H A Dsuid_exec.c110 euserid = geteuid();
/ast/src/lib/libast/uwin/
H A Drcmd.c329 saveuid = geteuid();
/ast/src/cmd/probe/
H A Dprobe.c31 * (2) probe hierarchy owned by the caller geteuid() (e.g., FAT fs)
400 suid = (n = geteuid()) != getuid();
/ast/src/lib/libast/misc/
H A Dprocopen.c636 if ((flags & PROC_PRIVELEGED) && !geteuid())
638 setuid(geteuid());
/ast/src/cmd/ss/
H A Dssd.c317 if (st.st_uid != geteuid())
/ast/src/cmd/3d/
H A Dpathreal.c509 uid = geteuid();
/ast/src/lib/libtksh/src/
H A Dfilecmd.c333 mode = (geteuid() == statBuf.st_uid);

Completed in 46 milliseconds

12