From 072d15dfed9c1c15fbf4273f31a0226faab996f7 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 30 Nov 2022 17:58:13 +0100 Subject: tests: shell: Fix valgrind mode for 0008-unprivileged_0 Valgrind is run as user nobody, let everyone write into the temporary directory. Signed-off-by: Phil Sutter --- iptables/tests/shell/run-tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iptables/tests/shell/run-tests.sh b/iptables/tests/shell/run-tests.sh index 7878760f..7a80af34 100755 --- a/iptables/tests/shell/run-tests.sh +++ b/iptables/tests/shell/run-tests.sh @@ -122,7 +122,8 @@ EOF if [ "$VALGRIND" == "y" ]; then tmpd=$(mktemp -d) msg_info "writing valgrind logs to $tmpd" - chmod a+rx $tmpd + # let nobody write logs, too (././testcases/iptables/0008-unprivileged_0) + chmod 777 $tmpd printscript "$XTABLES_NFT_MULTI" "$tmpd" >${tmpd}/xtables-nft-multi printscript "$XTABLES_LEGACY_MULTI" "$tmpd" >${tmpd}/xtables-legacy-multi trap "rm ${tmpd}/xtables-*-multi" EXIT -- cgit v1.2.3