From a1f8a5eb2cb8288abc8727a83788411fedbc9d31 Mon Sep 17 00:00:00 2001 From: MitchDrage <25337396+MitchDrage@users.noreply.github.com> Date: Wed, 20 May 2026 11:36:41 +1000 Subject: [PATCH] fix: exclude AlmaLinux from /lib/sysctl.d user-managed object scan in sysctl OVAL template https://github.com/ComplianceAsCode/content/issues/14722 --- shared/templates/sysctl/oval.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/templates/sysctl/oval.template b/shared/templates/sysctl/oval.template index fcbdcfa1fcb3..916a62b97d9a 100644 --- a/shared/templates/sysctl/oval.template +++ b/shared/templates/sysctl/oval.template @@ -180,7 +180,7 @@ object_static_etc_sysctls_{{{ rule_id }}} -{{% if product not in [ "ol7", "ol8", "ol9", "rhcos4", "rhel8", "rhel9", "rhel10", "ubuntu2204", "ubuntu2404"] %}} +{{% if product not in [ "almalinux8", "almalinux9", "ol7", "ol8", "ol9", "rhcos4", "rhel8", "rhel9", "rhel10", "ubuntu2204", "ubuntu2404"] %}} object_static_lib_sysctld_{{{ rule_id }}} {{% endif %}} @@ -231,7 +231,7 @@ ^.*\.conf$ {{{ sysctl_match() }}} -{{% if product not in [ "ol7", "ol8", "ol9", "rhcos4", "ubuntu2204", "ubuntu2404"] or 'rhel' in product %}} +{{% if product not in [ "ol7", "ol8", "ol9", "rhcos4", "ubuntu2204", "ubuntu2404"] or 'rhel' in product or 'almalinux' in product %}} /lib/sysctl.d ^.*\.conf$