-----BEGIN PGP SIGNED MESSAGE-----
Attached is the C source that is my first attempt at a mock launcher
program. This program is built as the executable /usr/bin/mock with
setuid:root, setgid:mock and will exec python with the input file
/usr/bin/mock.py. The program successfully launches python, but I
haven't worked through all the issues to complete a build (yet). I
know that mock.py needs to be modified to remove the dont-run-as-root
test and I've made a first cut at removing mock-helper from .cfg
files, but I'm sure there are other things that need to be done. I
have checked nothing into CVS at this point and even if/when I do, I
suspect I'll be working off a branch for a while.
Note that the program makes use of Linux namespaces. This *should*
make our handling of mount points within the chroot (/proc, /sys,
etc.) a bit easier to clean up, since when the process dies the mounts
should just go away. I haven't verified this though, so caveat emptor.
Anyway, it's a starting point. Please look it over and provide feedback.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----