[X2Go-Dev] setuid/setgid in libXcomp
Moritz Strübe
Moritz.Struebe at informatik.uni-erlangen.de
Sun Jul 14 11:33:47 CEST 2013
Hey,
this is a bit of guesswork, but,
* getgit get the _real_ real gid
* setgit sets the _effective_ gid
Thus you reset the effective s/gid.
Morty
Am 11.07.2013 20:45, Orion Poplawski schrieb:
> Can anyone explain to my why libXcomp calls setgid/setuid in
> Pipe.cpp:Popen() after calling fork()? It also isn't checking the
> results of the call, but I'm really not sure why the calls are there
> in the first place.
>
> switch (pid = Fork())
> {
> ...
> case 0:
> {
> //
> // Child.
> //
>
> setgid(getgid());
> setuid(getuid());
>
> Nothing is running as a setuid/setgid process is it?
>
>
More information about the x2go-dev
mailing list