Skip to contentSkip to conversation

tests: shell: bogus EBUSY on helper deletion from transaction

PATCH New Pablo Neira Ayuso 1 participant 1 message Mar 14, 2019 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 tests: shell: bogus EBUSY on helper deletion from transaction

---
 tests/shell/testcases/transactions/0048helpers_0 | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100755 tests/shell/testcases/transactions/0048helpers_0
tests/shell/testcases/transactions/0048helpers_0 new file +15 -0
new file mode 100755
index 000000000000..675a977ef4a1
@@ -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"
Signature · 1 line
2.11.0