Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- tests/shell/features/secmark.nft | 7 +++++++ tests/shell/testcases/json/0005secmark_objref_0 | 1 + 2 files changed, 8 insertions(+) create mode 100644 tests/shell/features/secmark.nft diff --git a/tests/shell/features/secmark.nft b/tests/shell/features/secmark.nft new file mode 100644 index 000000000000..ccbb572f2756 --- /dev/null +++ b/tests/shell/features/secmark.nft @@ -0,0 +1,7 @@ +# fb961945457f ("netfilter: nf_tables: add SECMARK support") +# v4.20-rc1~14^2~125^2~5 +table inet x { + secmark ssh_server { + "system_u:object_r:ssh_server_packet_t:s0" + } +} diff --git a/tests/shell/testcases/json/0005secmark_objref_0 b/tests/shell/testcases/json/0005secmark_objref_0 index 992d1b000d86..5c44f09337be 100755 --- a/tests/shell/testcases/json/0005secmark_objref_0 +++ b/tests/shell/testcases/json/0005secmark_objref_0 @@ -1,6 +1,7 @@ #!/bin/bash # NFT_TEST_REQUIRES(NFT_TEST_HAVE_json) +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_secmark) set -e -- 2.30.2