Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 10 additions & 17 deletions products/opensuse/product.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,15 @@ init_system: "systemd"

cpes_root: "../../shared/applicability"
cpes:
- opensuse-42.1:
name: "cpe:/o:opensuse:leap:42.1"
title: "openSUSE Leap 42.1"
check_id: installed_OS_is_opensuse_leap42

- opensuse-42.2:
name: "cpe:/o:opensuse:leap:42.2"
title: "openSUSE Leap 42.2"
check_id: installed_OS_is_opensuse_leap42

- opensuse-42.3:
name: "cpe:/o:opensuse:leap:42.3"
title: "openSUSE Leap 42.3"
check_id: installed_OS_is_opensuse_leap42

- opensuse-15:
name: "cpe:/o:opensuse:leap:15.0"
title: "openSUSE Leap 15.0"
name: "cpe:/o:opensuse:leap:15"
title: "openSUSE Leap 15"
check_id: installed_OS_is_opensuse_leap15
- opensuse-16:
name: "cpe:/o:opensuse:leap:16"
title: "openSUSE Leap 16"
check_id: installed_OS_is_opensuse_leap16
- opensuse-tumbleweed:
name: "cpe:/o:opensuse:tumbleweed"
title: "openSUSE Tumbleweed"
check_id: installed_OS_is_opensuse
30 changes: 0 additions & 30 deletions shared/applicability/oval/installed_OS_is_opensuse_leap42.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<affected family="unix">
<platform>multi_platform_all</platform>
</affected>
<reference ref_id="cpe:/o:opensuse:leap:15.0" source="CPE" />
<reference ref_id="cpe:/o:opensuse:leap:15" source="CPE" />
<description>The operating system installed on the system is openSUSE Leap 15.</description>
</metadata>
<criteria operator="AND">
<extend_definition comment="openSUSE is installed" definition_ref="installed_OS_is_opensuse" />
<extend_definition comment="Installed OS is part of the Unix family" definition_ref="installed_OS_is_part_of_Unix_family" />
<criterion comment="openSUSE Leap 15 is installed" test_ref="test_opensuse_leap15_installed" />
</criteria>
</definition>
Expand Down
28 changes: 28 additions & 0 deletions shared/checks/oval/installed_OS_is_opensuse_leap16.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<def-group>
<definition class="inventory" id="installed_OS_is_opensuse_leap16" version="1">
<metadata>
<title>openSUSE Leap 16</title>
<affected family="unix">
<platform>multi_platform_all</platform>
</affected>
<reference ref_id="cpe:/o:opensuse:leap:16" source="CPE" />
<description>The operating system installed on the system is openSUSE Leap 16.</description>
</metadata>
<criteria operator="AND">
<extend_definition comment="Installed OS is part of the Unix family" definition_ref="installed_OS_is_part_of_Unix_family" />
<criterion comment="openSUSE Leap 16 is installed" test_ref="test_opensuse_leap16_installed" />
</criteria>
</definition>

<linux:rpminfo_test check="all" check_existence="at_least_one_exists" comment="openSUSE Leap 16 is installed" id="test_opensuse_leap16_installed" version="1">
<linux:object object_ref="obj_opensuse_leap16_installed" />
<linux:state state_ref="state_opensuse_leap16_installed" />
</linux:rpminfo_test>
<linux:rpminfo_state id="state_opensuse_leap16_installed" version="1">
<linux:version operation="pattern match">^16.*$</linux:version>
</linux:rpminfo_state>
<linux:rpminfo_object id="obj_opensuse_leap16_installed" version="1">
<linux:name>Leap-release</linux:name>
</linux:rpminfo_object>

</def-group>
52 changes: 24 additions & 28 deletions tests/data/product_stability/opensuse.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
aide_also_checks_audispd: 'yes'
aide_also_checks_rsyslog: 'no'
aide_also_checks_audispd: "yes"
aide_also_checks_rsyslog: "no"
aide_bin_path: /usr/sbin/aide
aide_conf_path: /etc/aide.conf
audisp_conf_path: /etc/audit
Expand All @@ -16,26 +16,22 @@ auid: 1000
basic_properties_derived: true
benchmark_id: OPENSUSE
benchmark_root: ../../linux_os/guide
bootable_containers_supported: 'false'
bootable_containers_supported: "false"
chrony_conf_path: /etc/chrony.conf
chrony_d_path: /etc/chrony.d/
cpes:
- opensuse-42.1:
check_id: installed_OS_is_opensuse_leap42
name: cpe:/o:opensuse:leap:42.1
title: openSUSE Leap 42.1
- opensuse-42.2:
check_id: installed_OS_is_opensuse_leap42
name: cpe:/o:opensuse:leap:42.2
title: openSUSE Leap 42.2
- opensuse-42.3:
check_id: installed_OS_is_opensuse_leap42
name: cpe:/o:opensuse:leap:42.3
title: openSUSE Leap 42.3
- opensuse-15:
check_id: installed_OS_is_opensuse_leap15
name: cpe:/o:opensuse:leap:15.0
title: openSUSE Leap 15.0
- opensuse-15:
check_id: installed_OS_is_opensuse_leap15
name: cpe:/o:opensuse:leap:15
title: openSUSE Leap 15
- opensuse-16:
check_id: installed_OS_is_opensuse_leap16
name: cpe:/o:opensuse:leap:16
title: openSUSE Leap 16
- opensuse-tumbleweed:
check_id: installed_OS_is_opensuse
name: cpe:/o:opensuse:tumbleweed
title: openSUSE Tumbleweed
cpes_root: ../../shared/applicability
dconf_gdm_dir: gdm.d
dynamic_uid_max: 65519
Expand Down Expand Up @@ -96,16 +92,16 @@ reference_uris:
stigid: https://www.cyber.mil/stigs/downloads/?_dl_facet_stigs=operating-systems%2Cunix-linux
stigref: https://www.cyber.mil/stigs/srg-stig-tools/
rsyslog_cafile: /etc/pki/tls/cert.pem
sshd_distributed_config: 'false'
sysctl_remediate_drop_in_file: 'false'
sshd_distributed_config: "false"
sysctl_remediate_drop_in_file: "false"
target_oval_version:
- 5
- 11
target_oval_version_str: '5.11'
- 5
- 11
target_oval_version_str: "5.11"
type: platform
uid_min: 1000
xwindows_packages:
- xorg-x11-server-Xorg
- xorg-x11-server-common
- xorg-x11-server-utils
- xorg-x11-server-Xwayland
- xorg-x11-server-Xorg
- xorg-x11-server-common
- xorg-x11-server-utils
- xorg-x11-server-Xwayland
Loading