Skip to content

Commit 2eb657d

Browse files
authored
Merge pull request #14724 from MitchDrage/patch-1
sysctl template: add AlmaLinux to /lib/sysctl.d exclusion list to fix false positive sysctl failures
2 parents 3bcae1b + a1f8a5e commit 2eb657d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

shared/templates/sysctl/oval.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
<ind:textfilecontent54_object id="object_static_etc_lib_sysctls_{{{ rule_id }}}" version="1">
181181
<set>
182182
<object_reference>object_static_etc_sysctls_{{{ rule_id }}}</object_reference>
183-
{{% if product not in [ "ol7", "ol8", "ol9", "rhcos4", "rhel8", "rhel9", "rhel10", "ubuntu2204", "ubuntu2404"] %}}
183+
{{% if product not in [ "almalinux8", "almalinux9", "ol7", "ol8", "ol9", "rhcos4", "rhel8", "rhel9", "rhel10", "ubuntu2204", "ubuntu2404"] %}}
184184
<object_reference>object_static_lib_sysctld_{{{ rule_id }}}</object_reference>
185185
{{% endif %}}
186186
</set>
@@ -231,7 +231,7 @@
231231
<ind:filename operation="pattern match">^.*\.conf$</ind:filename>
232232
{{{ sysctl_match() }}}
233233
</ind:textfilecontent54_object>
234-
{{% if product not in [ "ol7", "ol8", "ol9", "rhcos4", "ubuntu2204", "ubuntu2404"] or 'rhel' in product %}}
234+
{{% if product not in [ "ol7", "ol8", "ol9", "rhcos4", "ubuntu2204", "ubuntu2404"] or 'rhel' in product or 'almalinux' in product %}}
235235
<ind:textfilecontent54_object id="object_static_lib_sysctld_{{{ rule_id }}}" version="1">
236236
<ind:path>/lib/sysctl.d</ind:path>
237237
<ind:filename operation="pattern match">^.*\.conf$</ind:filename>

0 commit comments

Comments
 (0)