diff --git a/shared/applicability/rhcos4-rhel8.yml b/shared/applicability/rhcos4-rhel8.yml new file mode 100644 index 000000000000..44a58ccc5b71 --- /dev/null +++ b/shared/applicability/rhcos4-rhel8.yml @@ -0,0 +1,3 @@ +name: "cpe:/o:redhat:rhcos4:8" +title: "Red Hat Enterprise Linux CoreOS 4 RHEL8 Based" +check_id: installed_OS_is_rhcos4_rhel8 diff --git a/shared/checks/oval/installed_OS_is_rhcos4.xml b/shared/checks/oval/installed_OS_is_rhcos4.xml index ccc50d9ed7cf..101b69aed59d 100644 --- a/shared/checks/oval/installed_OS_is_rhcos4.xml +++ b/shared/checks/oval/installed_OS_is_rhcos4.xml @@ -14,6 +14,10 @@ + + + + @@ -96,6 +100,37 @@ + + + + Red Hat Enterprise Linux CoreOS RHEL8 Based + + multi_platform_all + + + The operating system installed on the system is + Red Hat Enterprise Linux CoreOS RHEL8 Based + + + + + + + + + + + + + /etc/os-release + ^RHEL_VERSION="?(\d+\.?\d*)"?$ + 1 + + + ^8\. + + + @@ -139,7 +174,7 @@ /etc/os-release - ^RHEL_VERSION=(\d+\.?\d*)$ + ^RHEL_VERSION="?(\d+\.?\d*)"?$ 1