selftests: netfilter: Run nft_audit.sh in its own netns
authorPhil Sutter <phil@nwl.cc>
Fri, 13 Oct 2023 20:02:24 +0000 (22:02 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 18 Oct 2023 11:47:08 +0000 (13:47 +0200)
commit2e2d9c7d4d37d74873583d7b0c94eac8b6869486
tree862291b73ed69833a36f7762749c8b97c83c05f7
parent1baf0152f7707c6c7e4ea815dcc1f431c0e603f9
selftests: netfilter: Run nft_audit.sh in its own netns

Don't mess with the host's firewall ruleset. Since audit logging is not
per-netns, add an initial delay of a second so other selftests' netns
cleanups have a chance to finish.

Fixes: e8dbde59ca3f ("selftests: netfilter: Test nf_tables audit logging")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
tools/testing/selftests/netfilter/nft_audit.sh