[Qa-jenkins-scm] [jenkins.debian.net] 08/11: reproducible/lede: only alllow certain functions to be executed remote
Holger Levsen
holger at layer-acht.org
Tue Aug 2 14:25:02 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 4960398d1165014a3cdaa0d17bc4a0da44643390
Author: Alexander Couzens <lynxis at fe80.eu>
Date: Sun Jul 31 01:14:19 2016 +0200
reproducible/lede: only alllow certain functions to be executed remote
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_lede.sh | 10 ++++++++++
bin/reproducible_openwrt.sh | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git a/bin/reproducible_lede.sh b/bin/reproducible_lede.sh
index b184f55..77ea110 100755
--- a/bin/reproducible_lede.sh
+++ b/bin/reproducible_lede.sh
@@ -22,6 +22,16 @@ set -e
case $1 in
node)
shift
+ case $1 in
+ openwrt_build |\
+ openwrt_get_banner |\
+ openwrt_mktempdir |\
+ openwrt_cleanup_tmpdirs) ;; # this is the allowed list
+ *)
+ echo "Unsupported remote node function $@"
+ exit 1
+ ;;
+ esac
$@
exit $?
;;
diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh
index 0d1c740..b1da706 100755
--- a/bin/reproducible_openwrt.sh
+++ b/bin/reproducible_openwrt.sh
@@ -22,6 +22,16 @@ set -e
case $1 in
node)
shift
+ case $1 in
+ openwrt_build |\
+ openwrt_get_banner |\
+ openwrt_mktempdir |\
+ openwrt_cleanup_tmpdirs) ;; # this is the allowed list
+ *)
+ echo "Unsupported remote node function $@"
+ exit 1
+ ;;
+ esac
$@
exit $?
;;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list