summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/rule_management/0008delete_1
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/testcases/rule_management/0008delete_1')
-rwxr-xr-xtests/shell/testcases/rule_management/0008delete_113
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/shell/testcases/rule_management/0008delete_1 b/tests/shell/testcases/rule_management/0008delete_1
new file mode 100755
index 0000000..d1900d6
--- /dev/null
+++ b/tests/shell/testcases/rule_management/0008delete_1
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# tests for Netfilter bug #965 and the related fix
+# (regarding rule management with a given position/handle spec)
+
+set -e
+$NFT add table t
+$NFT add chain t c
+
+# this should fail, we don't allow delete with position
+$NFT delete rule t c position 2 drop 2>/dev/null || exit 0
+echo "E: allowed position spec with delete action" >&2
+exit 1