]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: add test case for anon set abort.
authorFlorian Westphal <fw@strlen.de>
Thu, 7 Mar 2019 19:43:56 +0000 (20:43 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 7 Mar 2019 20:08:04 +0000 (21:08 +0100)
This triggers kernel crash in 5.0, see
https://bugzilla.netfilter.org/show_bug.cgi?id=1325

Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/testcases/transactions/0045anon-unbind_0 [new file with mode: 0755]

diff --git a/tests/shell/testcases/transactions/0045anon-unbind_0 b/tests/shell/testcases/transactions/0045anon-unbind_0
new file mode 100755 (executable)
index 0000000..1e16af1
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+RULESET='table inet filter {
+ chain antileak {
+   udp dport { 137, 138 } drop comment "NetBT"
+ }
+}'
+
+set -e
+$NFT -c -f - <<< "$RULESET"