-----BEGIN PGP SIGNED MESSAGE-----
Clark Williams wrote:
>> // elevate our privileges
>> if (setreuid (geteuid (), geteuid ()))
>> error("setreuid failed: %s", strerror(errno));
>> debug("running with uid: %d, gid: %d\n", getuid(), getgid());
>> Is this necessary? It seems to me like this is something that can be
>> done in mock.py for the cases where it is necessary, as mock.py might
>> need to know the user id of the person running mock, and so it can
>> switch back to that user for writing output files.
So, you're thinking we just to seteuid/setegid rather than setting the
Ok, I pulled out my shiny new 2nd Edition copy of "Advanced
Programming in the UNIX Environment" to try jog a brain cell or three
about uid/gid manipulation. Now that I reread what you said, it sounds
like you want me just to leave it alone and manipulate effective
uid/gid only when we need to in mock.py.
Is that a correct statement?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----