]> git.ozlabs.org Git - next-scripts/commitdiff
limit the builds access to the network
authorStephen Rothwell <sfr@canb.auug.org.au>
Sun, 24 Nov 2013 23:28:06 +0000 (10:28 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sun, 24 Nov 2013 23:28:06 +0000 (10:28 +1100)
do_build
do_last_build

index 7f2adc7321720cd690d011e1f85ea9912893da0f..767d37a3210e5691b34677fb2e83c36e8fb0c002 100755 (executable)
--- 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
 
index f1a20f2518fb0a911733ee2e4290493ca685b7f7..cfa6b5dae69731eca7e863c45ffeba0b8c9f9609 100755 (executable)
@@ -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