From: Pablo Neira Ayuso Date: Wed, 23 May 2018 10:08:02 +0000 (+0200) Subject: tests: shell: more chain dependency validation X-Git-Tag: v0.9.0~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b6fb07de07a;p=thirdparty%2Fnftables.git tests: shell: more chain dependency validation More exercising for the chain dependency validation. Reported-by: Taehee Yoo Signed-off-by: Pablo Neira Ayuso --- diff --git a/tests/shell/testcases/chains/0017masquerade_jump_1 b/tests/shell/testcases/chains/0017masquerade_jump_1 new file mode 100755 index 00000000..a57675f5 --- /dev/null +++ b/tests/shell/testcases/chains/0017masquerade_jump_1 @@ -0,0 +1,10 @@ +#!/bin/bash + +set -e + +$NFT add table t +$NFT add chain t input {type filter hook input priority 4 \; } +$NFT add chain t c1 +$NFT add rule t input jump c1 +# kernel should return EOPNOTSUPP +$NFT add rule t c1 masquerade 2>/dev/null >&2