From 093fdfdcaefb2a6da8c382205645a299529b8aaf Mon Sep 17 00:00:00 2001 From: svet-se Date: Mon, 29 May 2023 12:48:24 +0300 Subject: [PATCH] update rule sles-12-030250 --- .../sshd_disable_compression/oval/shared.xml | 14 ++++++++++++-- .../ssh_server/sshd_disable_compression/rule.yml | 2 ++ shared/applicability/package.yml | 2 ++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/linux_os/guide/services/ssh/ssh_server/sshd_disable_compression/oval/shared.xml b/linux_os/guide/services/ssh/ssh_server/sshd_disable_compression/oval/shared.xml index c14509039f9..54d49e4db87 100644 --- a/linux_os/guide/services/ssh/ssh_server/sshd_disable_compression/oval/shared.xml +++ b/linux_os/guide/services/ssh/ssh_server/sshd_disable_compression/oval/shared.xml @@ -6,14 +6,24 @@ + {{% if product in ['sle12'] %}} + + {{% else %}} + definition_ref="package_openssh-server_removed" /> + {{% endif %}} + {{% if product in ['sle12'] %}} + + {{% else %}} + definition_ref="package_openssh-server_installed" /> + {{% endif %}} diff --git a/linux_os/guide/services/ssh/ssh_server/sshd_disable_compression/rule.yml b/linux_os/guide/services/ssh/ssh_server/sshd_disable_compression/rule.yml index 6a005d2e409..184502a043c 100644 --- a/linux_os/guide/services/ssh/ssh_server/sshd_disable_compression/rule.yml +++ b/linux_os/guide/services/ssh/ssh_server/sshd_disable_compression/rule.yml @@ -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) }}}' diff --git a/shared/applicability/package.yml b/shared/applicability/package.yml index 07f3df9df0b..720fa9969de 100644 --- a/shared/applicability/package.yml +++ b/shared/applicability/package.yml @@ -79,3 +79,5 @@ args: pkgname: yum zypper: pkgname: zypper + openssh: + pkgname: openssh