From 27b4bc0c4610f7d8e73654cfb45d0fdf966dfcb3 Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Mon, 25 Nov 2013 10:28:06 +1100 Subject: [PATCH] limit the builds access to the network --- do_build | 5 ++++- do_last_build | 10 ++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/do_build b/do_build index 7f2adc7..767d37a 100755 --- a/do_build +++ b/do_build @@ -4,7 +4,10 @@ set -e -ssh "$build_host" /bin/sh -e <<-EOF +###ssh "$build_host" /bin/sh -e <<-EOF +ssh root@"$build_host" unshare -n su $(id -u -n) <<-EOF + set -e + echo \$PATH | grep -q "\$HOME/bin" || export PATH="\$HOME/bin:\$PATH" export LANG=C diff --git a/do_last_build b/do_last_build index f1a20f2..cfa6b5d 100755 --- a/do_last_build +++ b/do_last_build @@ -4,7 +4,10 @@ set -e -ssh "$build_host" /bin/sh -e <<-EOF +##ssh "$build_host" /bin/sh -e <<-EOF +ssh root@"$build_host" unshare -n su $(id -u -n) <<-EOF + set -e + echo \$PATH | grep -q "\$HOME/bin" || export PATH="\$HOME/bin:\$PATH" export LANG=C @@ -48,7 +51,10 @@ do ka=${a%:*} ca=${a#*:} d=../${ka}_defconfig - ssh "$build_host" /bin/sh -e <<-EOF + ##ssh "$build_host" /bin/sh -e <<-EOF + ssh root@"$build_host" unshare -n su $(id -u -n) <<-EOF + set -e + echo \$PATH | grep -q "\$HOME/bin" || export PATH="\$HOME/bin:\$PATH" export LANG=C -- 2.39.5