]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: bogus EBUSY on helper deletion from transaction
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 14 Mar 2019 09:41:45 +0000 (10:41 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 14 Mar 2019 09:52:33 +0000 (10:52 +0100)
Reported-by: Laura Garcia <nevola@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/transactions/0048helpers_0 [new file with mode: 0755]

diff --git a/tests/shell/testcases/transactions/0048helpers_0 b/tests/shell/testcases/transactions/0048helpers_0
new file mode 100755 (executable)
index 0000000..675a977
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+RULESET='add table ip filter
+add chain ip filter filter { type filter hook prerouting priority mangle; policy accept; }
+add ct helper ip filter ftp { type "ftp" protocol tcp; };
+add rule ip filter filter tcp dport 33 ct helper set "ftp"'
+
+set -e
+$NFT -f - <<< "$RULESET"
+
+RULESET='flush chain ip filter filter
+delete chain filter filter
+delete ct helper ip filter ftp'
+
+$NFT -f - <<< "$RULESET"