Skip to contentSkip to conversation

tests: shell: skip flowtable-uaf if we lack table owner support

PATCH New Florian Westphal 1 participant 1 message Sep 22, 2023 netfilter

lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 tests: shell: skip flowtable-uaf if we lack table owner support

---
 tests/shell/features/table_flag_owner.nft      | 5 +++++
 tests/shell/testcases/owner/0001-flowtable-uaf | 2 ++
 2 files changed, 7 insertions(+)
 create mode 100644 tests/shell/features/table_flag_owner.nft
tests/shell/features/table_flag_owner.nft new file +5 -0
new file mode 100644
index 000000000000..6e6f608a7e94
@@ -0,0 +1,5 @@
+# 6001a930ce03 ("netfilter: nftables: introduce table ownership")
+# v5.12-rc1~200^2~6^2
+table t {
+	flag owner;
+}
tests/shell/testcases/owner/0001-flowtable-uaf +2 -0
index 8b7a551cc69e..c07e8d6a0ab9 100755
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_table_flag_owner)
+
 set -e
 
 $NFT -f - <<EOF
Signature · 1 line
2.41.0