-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 > real uid/gid?
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? Clark -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFEkG2oHyuj/+TTEp0RAgFEAJ42gRh+7DAuGmdZLUS0upj26pnQuACdHvVi naTqRCeG4sGNAF2bQjyBuwk= =fm1f -----END PGP SIGNATURE----- -- Fedora-buildsys-list mailing list Fedora-buildsys-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-buildsys-list