summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-11-30 17:58:13 +0100
committerPhil Sutter <phil@nwl.cc>2022-12-02 01:44:17 +0100
commit072d15dfed9c1c15fbf4273f31a0226faab996f7 (patch)
tree5f798e714c9a83933bb131968275e092ee90640a
parent1b1eb7e784a66882d6d4b0440b716b6aba8c99da (diff)
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 <phil@nwl.cc>
-rwxr-xr-xiptables/tests/shell/run-tests.sh3
1 files changed, 2 insertions, 1 deletions
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