From: Todd Lyons Date: Sun, 30 Nov 2014 21:14:26 +0000 (-0800) Subject: Check perms on home directory when running. X-Git-Url: https://git.exim.org/buildfarm-client.git/commitdiff_plain/ce98e9034ead6df1000916cc611304e38049c58c Check perms on home directory when running. --- diff --git a/build-farm.conf.template b/build-farm.conf.template index 30134a7..66a4750 100644 --- a/build-farm.conf.template +++ b/build-farm.conf.template @@ -42,6 +42,9 @@ my $branch; # replacement must have the same effect # must be absolute, can be either Unix or Windows style for MSVC tar_log_cmd => undef, + # If running multiple animals, an explicit common directory for + # the lockfile so that runs do not conflict. Otherwise, leave unset. + global_lock_dir => '/home/farm', # this directory must exist before anything will work build_root => '/home/farm/buildfarm', # set true to do vpath builds diff --git a/run_branches.pl b/run_branches.pl index 702d1a4..2b0e230 100755 --- a/run_branches.pl +++ b/run_branches.pl @@ -41,6 +41,10 @@ die "only one of --run-all and --run-one permitted" die "need one of --run-all and --run-one" unless ($run_all || $run_one); +# common mistake +die "need group searchable homedir" + unless (stat($ENV{HOME}) & 0550 == 0550); + # set up a "branch" variable for processing the config file use vars qw($branch); $branch = 'global';