From 484ceb5641f53a8f3b505099a3bebb8d5e481f1a Mon Sep 17 00:00:00 2001 From: Watson Sato Date: Fri, 6 May 2022 11:31:31 +0200 Subject: [PATCH] Restrict the symlink test to OVAL 5.11 The symlink_test was added in OVAL 5.11 and is not availble in 5.10. The 5.10 version of the sysctl template will not check for sysctl options defined in more than on file. --- shared/templates/sysctl/oval.template | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared/templates/sysctl/oval.template b/shared/templates/sysctl/oval.template index ba4e65cbaef..53456a90a01 100644 --- a/shared/templates/sysctl/oval.template +++ b/shared/templates/sysctl/oval.template @@ -114,7 +114,9 @@ +{{% if target_oval_version >= [5, 11] %}} +{{% endif %}} @@ -140,6 +142,7 @@ {{{ state_static_sysctld("usr_lib_sysctld") }}} +{{% if target_oval_version >= [5, 11] %}} @@ -214,6 +217,7 @@ +{{% endif %}}