Message ID | 20231018125605.27299-3-fw@strlen.de (mailing list archive) |
---|---|
State | Accepted |
Commit | 2e2d9c7d4d37d74873583d7b0c94eac8b6869486 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net,1/4] netfilter: nf_tables: audit log object reset once per table | expand |
diff --git a/tools/testing/selftests/netfilter/nft_audit.sh b/tools/testing/selftests/netfilter/nft_audit.sh index e94a80859bbd..99ed5bd6e840 100755 --- a/tools/testing/selftests/netfilter/nft_audit.sh +++ b/tools/testing/selftests/netfilter/nft_audit.sh @@ -11,6 +11,12 @@ nft --version >/dev/null 2>&1 || { exit $SKIP_RC } +# Run everything in a separate network namespace +[ "${1}" != "run" ] && { unshare -n "${0}" run; exit $?; } + +# give other scripts a chance to finish - audit_logread sees all activity +sleep 1 + logfile=$(mktemp) rulefile=$(mktemp) echo "logging into $logfile"