summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/transactions
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2019-03-07 20:43:56 +0100
committerFlorian Westphal <fw@strlen.de>2019-03-07 21:08:04 +0100
commit2d103fce8dfacd7e063d7ecf60eaafe9266b762b (patch)
tree6497442ae603c91d23fbe439a235fb35dc77ddc3 /tests/shell/testcases/transactions
parentd34a6bacc6be36388a72350fe3c9e0d9ce81ac5a (diff)
tests: add test case for anon set abort.
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>
Diffstat (limited to 'tests/shell/testcases/transactions')
-rwxr-xr-xtests/shell/testcases/transactions/0045anon-unbind_010
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/shell/testcases/transactions/0045anon-unbind_0 b/tests/shell/testcases/transactions/0045anon-unbind_0
new file mode 100755
index 00000000..1e16af16
--- /dev/null
+++ b/tests/shell/testcases/transactions/0045anon-unbind_0
@@ -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"