Searched refs:euserid (Results 1 - 8 of 8) sorted by relevance

/ast/src/cmd/ksh93/sh/
H A Dsuid_exec.c92 static uid_t euserid; variable
110 euserid = geteuid();
141 if(ruserid != euserid &&
142 ((statb.st_mode & S_ISUID) == 0 || statb.st_uid != euserid))
150 if(euserid)
166 euserid = ruserid;
168 euserid = statb.st_uid;
170 if(euserid == ruserid && egroupid == rgroupid)
205 effuid = euserid;
298 if(euserid
[all...]
H A Dargs.c392 if(!sh_isstate(SH_INIT) && is_option(&newflags,SH_PRIVILEGED) != sh_isoption(SH_PRIVILEGED) || sh_isstate(SH_INIT) && is_option(&((Arg_t*)shp->arg_context)->sh->offoptions,SH_PRIVILEGED) && shp->gd->userid!=shp->gd->euserid)
398 if(shp->gd->euserid==0)
400 shp->gd->euserid = shp->gd->userid;
404 else if((shp->gd->userid!=shp->gd->euserid && setuid(shp->gd->euserid)<0) ||
406 (shp->gd->userid==shp->gd->euserid && shp->gd->groupid==shp->gd->egroupid))
H A Dpath.c1284 register uid_t euserid; local
1295 if((euserid=geteuid()) != shp->gd->userid)
1303 if(fstat(n,&statb)<0 || statb.st_uid != euserid)
H A Dmain.c398 nv_putval(PS1NOD,(shp->gd->euserid?e_stdprompt:e_supprompt),NV_RDONLY);
H A Dinit.c1284 shgd->euserid=geteuid();
1514 if(shp->gd->userid!=shp->gd->euserid || shp->gd->groupid!=shp->gd->egroupid)
1520 setuid(shp->gd->euserid=shp->gd->userid);
/ast/src/cmd/ksh93/bltins/
H A Dtest.c567 if(mode==X_OK && shp->gd->euserid==0)
569 if(shp->gd->userid==shp->gd->euserid && shp->gd->groupid==shp->gd->egroupid)
574 if(shp->gd->groupid==shp->gd->euserid || setregid(shp->gd->egroupid,shp->gd->groupid)==0)
577 if(shp->gd->userid==shp->gd->euserid || setreuid(shp->gd->euserid,shp->gd->userid)==0)
581 if(shp->gd->userid!=shp->gd->euserid)
582 setreuid(shp->gd->userid,shp->gd->euserid);
596 else if(shp->gd->euserid == 0)
603 else if(shp->gd->euserid == statb.st_uid)
/ast/src/cmd/ksh93/edit/
H A Dhistory.c198 if(shgd->euserid >=id1 && shgd->euserid <= id2)
837 sfprintf(hp->auditfp,"%u;%u;%s;%*s%c",sh_isoption(SH_PRIVILEGED)?shgd->euserid:shgd->userid,t,hp->tty,size,buff,0);
/ast/src/cmd/ksh93/include/
H A Ddefs.h122 uid_t euserid; member in struct:shared

Completed in 33 milliseconds