Skip to content

Commit

Permalink
Rename inconsistent shared OVAL IDs (Oracle Linux)
Browse files Browse the repository at this point in the history
The ID are not uniform with other similar checks (RHEL, SUSE,
Fedora etc), but there is no reason for them to be unique.
  • Loading branch information
evgenyz committed Dec 18, 2023
1 parent 7e51eef commit e274175
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<extend_definition comment="Installed OS is RHEL8" definition_ref="installed_OS_is_rhel8" />
<!--extend_definition comment="Installed OS is RHEL9" definition_ref="installed_OS_is_rhel9" /-->
<extend_definition comment="Installed OS is RHCOS4" definition_ref="installed_OS_is_rhcos4" />
<extend_definition comment="Installed OS is OL7" definition_ref="installed_OS_is_ol7_family" />
<extend_definition comment="Installed OS is OL7" definition_ref="installed_OS_is_ol7" />
<extend_definition comment="Installed OS is SLE12" definition_ref="installed_OS_is_sle12" />
<extend_definition comment="Installed OS is SLE15" definition_ref="installed_OS_is_sle15" />
<extend_definition comment="Installed OS is Ubuntu 16.04" definition_ref="installed_OS_is_ubuntu1604" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<extend_definition comment="Installed OS is RHEL7" definition_ref="installed_OS_is_rhel7" />
<extend_definition comment="Installed OS is RHEL8" definition_ref="installed_OS_is_rhel8" />
<extend_definition comment="Installed OS is RHEL9" definition_ref="installed_OS_is_rhel9" />
<extend_definition comment="Installed OS is OL7" definition_ref="installed_OS_is_ol7_family" />
<extend_definition comment="Installed OS is OL8" definition_ref="installed_OS_is_ol8_family" />
<extend_definition comment="Installed OS is OL7" definition_ref="installed_OS_is_ol7" />
<extend_definition comment="Installed OS is OL8" definition_ref="installed_OS_is_ol8" />
<extend_definition comment="Installed OS is SLE12" definition_ref="installed_OS_is_sle12" />
<extend_definition comment="Installed OS is SLE15" definition_ref="installed_OS_is_sle15" />
</criteria>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{{ oval_metadata("The Oracle Linux key packages are required to be installed.") }}}
<criteria comment="Oracle Vendor Keys" operator="AND">
<criteria comment="Oracle Installed" operator="OR">
<extend_definition comment="{{{ product }}} installed" definition_ref="installed_OS_is_{{{ product }}}_family" />
<extend_definition comment="{{{ product }}} installed" definition_ref="installed_OS_is_{{{ product }}}" />
</criteria>
<criteria comment="Oracle Vendor Keys Installed" operator="OR">
<criterion comment="package gpg-pubkey-{{{ pkg_version }}}-{{{ pkg_release }}} is installed"
Expand Down
2 changes: 1 addition & 1 deletion products/ol7/product.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cpes:
- ol7:
name: "cpe:/o:oracle:linux:7"
title: "Oracle Linux 7"
check_id: installed_OS_is_ol7_family
check_id: installed_OS_is_ol7

# Mapping of CPE platform to package
platform_package_overrides:
Expand Down
2 changes: 1 addition & 1 deletion products/ol8/product.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cpes:
- ol8:
name: "cpe:/o:oracle:linux:8"
title: "Oracle Linux 8"
check_id: installed_OS_is_ol8_family
check_id: installed_OS_is_ol8

# Mapping of CPE platform to package
platform_package_overrides:
Expand Down
2 changes: 1 addition & 1 deletion products/ol9/product.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cpes:
- ol9:
name: "cpe:/o:oracle:linux:9"
title: "Oracle Linux 9"
check_id: installed_OS_is_ol9_family
check_id: installed_OS_is_ol9

# Mapping of CPE platform to package
platform_package_overrides:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<def-group>
<definition class="inventory"
id="installed_OS_is_ol7_family" version="1">
id="installed_OS_is_ol7" version="1">
<metadata>
<title>Oracle Linux 7</title>
<affected family="unix">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<def-group>
<definition class="inventory"
id="installed_OS_is_ol8_family" version="1">
id="installed_OS_is_ol8" version="1">
<metadata>
<title>Oracle Linux 8</title>
<affected family="unix">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<def-group>
<definition class="inventory"
id="installed_OS_is_ol9_family" version="1">
id="installed_OS_is_ol9" version="1">
<metadata>
<title>Oracle Linux 9</title>
<affected family="unix">
Expand Down
2 changes: 1 addition & 1 deletion tests/data/product_stability/ol7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ benchmark_root: ../../linux_os/guide
chrony_conf_path: /etc/chrony.conf
cpes:
- ol7:
check_id: installed_OS_is_ol7_family
check_id: installed_OS_is_ol7
name: cpe:/o:oracle:linux:7
title: Oracle Linux 7
cpes_root: ../../shared/applicability
Expand Down
2 changes: 1 addition & 1 deletion tests/data/product_stability/ol8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ benchmark_root: ../../linux_os/guide
chrony_conf_path: /etc/chrony.conf
cpes:
- ol8:
check_id: installed_OS_is_ol8_family
check_id: installed_OS_is_ol8
name: cpe:/o:oracle:linux:8
title: Oracle Linux 8
cpes_root: ../../shared/applicability
Expand Down
2 changes: 1 addition & 1 deletion tests/data/product_stability/ol9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ benchmark_root: ../../linux_os/guide
chrony_conf_path: /etc/chrony.conf
cpes:
- ol9:
check_id: installed_OS_is_ol9_family
check_id: installed_OS_is_ol9
name: cpe:/o:oracle:linux:9
title: Oracle Linux 9
cpes_root: ../../shared/applicability
Expand Down

0 comments on commit e274175

Please sign in to comment.