]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: shell: connect chains to hook point
authorFlorian Westphal <fw@strlen.de>
Wed, 10 Jul 2024 00:33:37 +0000 (02:33 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 11 Jul 2024 15:05:32 +0000 (17:05 +0200)
commit1fc78397e9a1fb5e41841b8b4e92a9eb9536c6f1
tree0a42c261dec9a533cefa80b1bd48098313fa35f2
parenteddd1c779c712e2103dfb5d201faf1c956d3734a
tests: shell: connect chains to hook point

These tests should fail because they contain a loop or exceed the jump stack.

But this depends on the kernel validating chains that are not bound to any
basechain/hook point.

Wire up the initial chain to filter type.

Without this tests will start to fail when kernel stops validating
chains that are not reachable by any base chain.

Signed-off-by: Florian Westphal <fw@strlen.de>
14 files changed:
tests/shell/testcases/chains/0003jump_loop_1
tests/shell/testcases/chains/0010endless_jump_loop_1
tests/shell/testcases/chains/0011endless_jump_loop_1
tests/shell/testcases/chains/0018check_jump_loop_1
tests/shell/testcases/chains/dumps/0003jump_loop_1.json-nft
tests/shell/testcases/chains/dumps/0003jump_loop_1.nft
tests/shell/testcases/chains/dumps/0010endless_jump_loop_1.json-nft
tests/shell/testcases/chains/dumps/0010endless_jump_loop_1.nft
tests/shell/testcases/chains/dumps/0011endless_jump_loop_1.json-nft
tests/shell/testcases/chains/dumps/0011endless_jump_loop_1.nft
tests/shell/testcases/chains/dumps/0018check_jump_loop_1.json-nft
tests/shell/testcases/chains/dumps/0018check_jump_loop_1.nft
tests/shell/testcases/transactions/0023rule_1
tests/shell/testcases/transactions/anon_chain_loop