environment: make the reproducible environment available via shlib use
commitbf9117309d68da492fbcbfa465449d2fe14d8d95
authorKyle J. McKay <mackyle@gmail.com>
Fri, 5 Dec 2014 21:13:27 +0000 (5 13:13 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 5 Dec 2014 21:13:27 +0000 (5 13:13 -0800)
tree7f2508559ac04e9d172eb0f3db34f281a3fbf9cf
parent5dce5db1182f69def1fb6ef9d6e072401aa5fead
environment: make the reproducible environment available via shlib use

Make the reproducible enviornment (with a controlled HOME dir) available
simply by running shlib.sh.  In most cases this would already have been
set either via taskd.pl or jobd.pl or git-http-backend-verify or by the
git() function, but just to make sure, move the settings outside any
function so that any scripts that might be run by hand end up with the
same environment as those run automatically.

While we're moving things around, also make the $chroot/etc/girocco
directory have no write permissions (after creating the contained
.gitconfig with write permissions for $mirror_owner).  This prevents
any foreign vcs "helpers" from leaving turds behind.
bin/git-http-backend-verify
jailsetup.sh
shlib.sh