Searched refs:setuid (Results 1 - 14 of 14) sorted by relevance
/ast/src/lib/libast/preroot/ |
H A D | ispreroot.c | 51 if ((ruid = getuid()) != (euid = geteuid())) setuid(ruid); 53 if (ruid != euid) setuid(euid);
|
H A D | getpreroot.c | 82 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 D | atx.c | 99 if (setuid(uid))
|
/ast/src/cmd/ksh93/sh/ |
H A D | suid_exec.c | 58 #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 D | args.c | 396 setuid(shp->gd->userid); 404 else if((shp->gd->userid!=shp->gd->euserid && setuid(shp->gd->euserid)<0) ||
|
H A D | init.c | 1517 /* 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 D | unistd.h | 61 extern int setuid _ANSI_ARGS_((uid_t user));
|
/ast/src/cmd/ksh93/bltins/ |
H A D | regress.c | 89 "[+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 D | probe.c | 177 * return non-0 if path is in a readonly or non-setuid fs 453 setuid(getuid());
|
/ast/src/lib/libast/misc/ |
H A D | procopen.c | 638 setuid(geteuid()); 644 setuid(getuid());
|
H A D | magic.c | 2420 sfprintf(mp->tmp, ", setuid=%s", fmtuid(st->st_uid));
|
/ast/src/cmd/pax/ |
H A D | pax.h | 614 int setuid; /* set file uid to this value */ \
|
H A D | file.c | 1168 post.uid = state.setuid; 1264 p->uid = state.setuid;
|
H A D | pax.c | 1852 if ((state.setuid = struid(opt.owner)) < 0 || (state.setgid = strgid(opt.owner)) < 0)
|
Completed in 45 milliseconds