From 4960398d1165014a3cdaa0d17bc4a0da44643390 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sun, 31 Jul 2016 01:14:19 +0200 Subject: reproducible/lede: only alllow certain functions to be executed remote Signed-off-by: Holger Levsen --- bin/reproducible_lede.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bin/reproducible_lede.sh') diff --git a/bin/reproducible_lede.sh b/bin/reproducible_lede.sh index b184f550..77ea110a 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 $? ;; -- cgit v1.2.3-54-g00ecf