[PATCH] tests/netfilter_pkt: allow for a greater number of netfilter fields

Paul Moore <[email protected]>
Newsgroups org.kernel.vger.audit
Message-ID <[email protected]>
Current in-development kernels include source and destination port
fields in the NETFILTER_PKT record, adjust the test so that both
old and new formats are supported.

Future work could include verification of these additional fields,
but put this quick fix in place now.

Signed-off-by: Paul Moore <[email protected]>
---
 tests/netfilter_pkt/test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/netfilter_pkt/test b/tests/netfilter_pkt/test
index 7530e9d80308..f9e586a660bc 100755
--- a/tests/netfilter_pkt/test
+++ b/tests/netfilter_pkt/test
@@ -147,7 +147,7 @@ for ( 0 .. $#tests ) {
 }
 
 for ( 0 .. $#tests ) {
-    ok( $fields[$_] == $fields );    # $_ Correct number of fields?
+    ok( $fields[$_] >= $fields );    # $_ Correct number of fields?
 }
 
 ###
-- 
2.52.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.