]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
tests: shell: Fix valgrind mode for 0008-unprivileged_0
authorPhil Sutter <phil@nwl.cc>
Wed, 30 Nov 2022 16:58:13 +0000 (17:58 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 2 Dec 2022 00:44:17 +0000 (01:44 +0100)
Valgrind is run as user nobody, let everyone write into the temporary
directory.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/tests/shell/run-tests.sh

index 7878760fdcc4d9ef65c65e0c30b5adbb88ab9fc1..7a80af34322855aa62f20d2368d4ec44c7de6915 100755 (executable)
@@ -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