Skip to content

Commit

Permalink
Polish OVAL in sysctl template
Browse files Browse the repository at this point in the history
- Fix comments in OVAL tests
- Remove OVAL test whith jinja when the criterion is also removed

Signed-off-by: Edgar Aguilar <edgar.aguilar@oracle.com>
  • Loading branch information
Xeicker committed Jun 12, 2023
1 parent 13f96f5 commit 1d3cfdc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions shared/templates/sysctl/oval.template
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,18 @@
{{{ state_static_sysctld("user") }}}
</ind:textfilecontent54_test>

{{% if MISSING_PARAMETER_PASS == "true" %}}
<ind:textfilecontent54_test id="test_{{{ rule_id }}}_static_pkg_not_wrong" version="2" check="all"
check_existence="any_exist"
comment="{{{ SYSCTLVAR }}} static configuration in /etc/sysctl.d/*.conf" state_operator="OR">
comment="{{{ SYSCTLVAR }}} static configuration in /usr/lib/sysctl.d/*.conf" state_operator="OR">
{{{ state_static_sysctld("usr_lib_sysctld") }}}
</ind:textfilecontent54_test>
{{% endif %}}

<ind:textfilecontent54_test id="test_{{{ rule_id }}}_static_pkg_correct" version="2" check="all"
check_existence="all_exist"
comment="{{{ SYSCTLVAR }}} static configuration in /run/sysctl.d/*.conf" state_operator="OR">
comment="{{{ SYSCTLVAR }}} static configuration in /usr/lib/sysctl.d/*.conf"
state_operator="OR">
{{{ state_static_sysctld("usr_lib_sysctld") }}}
</ind:textfilecontent54_test>

Expand Down

0 comments on commit 1d3cfdc

Please sign in to comment.