Searched refs:setuid (Results 1 - 14 of 14) sorted by relevance

/ast/src/lib/libast/preroot/
H A Dispreroot.c51 if ((ruid = getuid()) != (euid = geteuid())) setuid(ruid);
53 if (ruid != euid) setuid(euid);
H A Dgetpreroot.c82 if ((ruid = getuid()) != (euid = geteuid())) setuid(ruid);
115 if (ruid != euid) setuid(euid);
156 if (ruid != euid) setuid(euid);
/ast/src/cmd/at/
H A Datx.c99 if (setuid(uid))
/ast/src/cmd/ksh93/sh/
H A Dsuid_exec.c58 #define SPECIAL 04100 /* setuid execute only by owner */
120 * group, and setuid/gid bits correctly set. This copy of
123 * it is setuid/gid. Validate the proper execution by
146 /* Make sure that this is the real setuid program, not the clone.
226 if(effuid != ruserid || setuid(ruserid) < 0)
426 if((mode & S_ISUID) && owner && setuid(owner) < 0)
459 /* Kill any setuid status at this point. That way, if the
460 * clone is not setuid, we won't exec it as root. Also, don't
464 if(setuid(ruserid) < 0)
H A Dargs.c396 setuid(shp->gd->userid);
404 else if((shp->gd->userid!=shp->gd->euserid && setuid(shp->gd->euserid)<0) ||
H A Dinit.c1517 /* require sh -p to run setuid and/or setgid */
1520 setuid(shp->gd->euserid=shp->gd->userid);
1527 /* careful of #! setuid scripts with name beginning with - */
/ast/src/lib/libtk/compat/
H A Dunistd.h61 extern int setuid _ANSI_ARGS_((uid_t user));
/ast/src/cmd/ksh93/bltins/
H A Dregress.c89 "[+setuid(uid)?Sets the intercept effective uid to \auid\a. "
211 int setuid(uid_t uid) function
219 TRACE(euid, "setuid", ("%s", "EPERM"));
224 TRACE(euid, "setuid", ("%s", intercept_euid == intercept_ruid ? "euid==ruid" : "euid!=ruid"));
/ast/src/cmd/probe/
H A Dprobe.c177 * return non-0 if path is in a readonly or non-setuid fs
453 setuid(getuid());
/ast/src/lib/libast/misc/
H A Dprocopen.c638 setuid(geteuid());
644 setuid(getuid());
H A Dmagic.c2420 sfprintf(mp->tmp, ", setuid=%s", fmtuid(st->st_uid));
/ast/src/cmd/pax/
H A Dpax.h614 int setuid; /* set file uid to this value */ \
H A Dfile.c1168 post.uid = state.setuid;
1264 p->uid = state.setuid;
H A Dpax.c1852 if ((state.setuid = struid(opt.owner)) < 0 || (state.setgid = strgid(opt.owner)) < 0)

Completed in 42 milliseconds