Skip to content

Commit

Permalink
update rule sles-12-030250
Browse files Browse the repository at this point in the history
  • Loading branch information
svet-se committed May 29, 2023
1 parent 27ed9ad commit 093fdfd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,24 @@
<criteria comment="sshd is not installed" operator="AND">
<extend_definition comment="sshd is not required or requirement is unset"
definition_ref="sshd_not_required_or_unset" />
{{% if product in ['sle12'] %}}
<extend_definition comment="rpm package openssh removed"
definition_ref="package_openssh_removed" />
{{% else %}}
<extend_definition comment="rpm package openssh-server removed"
definition_ref="package_openssh-server_removed" />
definition_ref="package_openssh-server_removed" />
{{% endif %}}
</criteria>
<criteria comment="sshd is installed and configured" operator="AND">
<extend_definition comment="sshd is required or requirement is unset"
definition_ref="sshd_required_or_unset" />
{{% if product in ['sle12'] %}}
<extend_definition comment="rpm package openssh installed"
definition_ref="package_openssh_installed" />
{{% else %}}
<extend_definition comment="rpm package openssh-server installed"
definition_ref="package_openssh-server_installed" />
definition_ref="package_openssh-server_installed" />
{{% endif %}}
<criterion comment="Check Compression in /etc/ssh/sshd_config"
test_ref="test_sshd_disable_compression" />
</criteria>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ ocil: |-
platform: os_linux[rhel]<7.4
{{% elif product == "ol7" %}}
platform: os_linux[ol]<7.4
{{% elif product == "sle12" %}}
platform: package[openssh]<7.4
{{% endif %}}

fixtext: '{{{ fixtext_sshd_lineinfile("Compression", xccdf_value("var_sshd_disable_compression"), no) }}}'
Expand Down
2 changes: 2 additions & 0 deletions shared/applicability/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,5 @@ args:
pkgname: yum
zypper:
pkgname: zypper
openssh:
pkgname: openssh

0 comments on commit 093fdfd

Please sign in to comment.