]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests: netfilter: Fix and review rpath.sh
authorPhil Sutter <phil@nwl.cc>
Wed, 9 Nov 2022 09:06:04 +0000 (10:06 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 9 Nov 2022 09:29:57 +0000 (10:29 +0100)
commit58bb78ce02269c0cf5b1f2bd2e4a605500b44c6b
tree5fde01d0a1a0eccff5f4d3192822aeb4a2df89f5
parent03c1f1ef1584c981935fab2fa0c45d3e43e2c235
selftests: netfilter: Fix and review rpath.sh

Address a few problems with the initial test script version:

* On systems with ip6tables but no ip6tables-legacy, testing for
  ip6tables was disabled by accident.
* Firewall setup phase did not respect possibly unavailable tools.
* Consistently call nft via '$nft'.

Fixes: 6e31ce831c63b ("selftests: netfilter: Test reverse path filtering")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tools/testing/selftests/netfilter/rpath.sh