diff --git a/0001-Add-AlmaLinux-to-CPE-dictionary.patch b/0001-Add-AlmaLinux-to-CPE-dictionary.patch new file mode 100644 index 0000000..0057cc4 --- /dev/null +++ b/0001-Add-AlmaLinux-to-CPE-dictionary.patch @@ -0,0 +1,137 @@ +From 8052b221a046c479c2cbb44c297191eb0d701e89 Mon Sep 17 00:00:00 2001 +From: Andrew Lukoshko +Date: Thu, 26 Sep 2024 11:42:20 +0000 +Subject: [PATCH] Add AlmaLinux to CPE dictionary + +--- + cpe/openscap-cpe-dict.xml | 14 +++++-- + cpe/openscap-cpe-oval.xml | 78 +++++++++++++++++++++++++++++++-------- + 2 files changed, 73 insertions(+), 19 deletions(-) + +diff --git a/cpe/openscap-cpe-dict.xml b/cpe/openscap-cpe-dict.xml +index 6c93b79..93a90c8 100644 +--- a/cpe/openscap-cpe-dict.xml ++++ b/cpe/openscap-cpe-dict.xml +@@ -1,7 +1,15 @@ + + +- +- Linux +- oval:org.open-scap.cpe.linux:def:1 ++ ++ AlmaLinux 8 ++ oval:org.open-scap.cpe.almalinux:def:8 ++ ++ ++ AlmaLinux 9 ++ oval:org.open-scap.cpe.almalinux:def:9 ++ ++ ++ AlmaLinux 10 ++ oval:org.open-scap.cpe.almalinux:def:10 + + +diff --git a/cpe/openscap-cpe-oval.xml b/cpe/openscap-cpe-oval.xml +index 99bed4a..3935c38 100644 +--- a/cpe/openscap-cpe-oval.xml ++++ b/cpe/openscap-cpe-oval.xml +@@ -12,34 +12,80 @@ + 2012-11-22T15:00:00+01:00 + + +- ++ + +- Red Hat Enterprise Linux ++ AlmaLinux 8 + +- Linux ++ AlmaLinux 8 + +- +- The operating system installed is Linux ++ ++ The operating system installed on the system is AlmaLinux 8 + + +- ++ ++ ++ ++ ++ ++ AlmaLinux 9 ++ ++ AlmaLinux 9 ++ ++ ++ The operating system installed on the system is AlmaLinux 9 ++ ++ ++ ++ ++ ++ ++ ++ AlmaLinux 10 ++ ++ AlmaLinux 10 ++ ++ ++ The operating system installed on the system is AlmaLinux 10 ++ ++ ++ + + + + +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + +- ++ ++ almalinux-release ++ + + +- +- unix +- ++ ++ ^almalinux-release ++ ^8 ++ ++ ++ ^almalinux-release ++ ^9 ++ ++ ++ ^almalinux.*-release ++ ^10 ++ + + +-- +2.43.5 + diff --git a/openscap-1.3.5-almalinux.patch b/openscap-1.3.5-almalinux.patch deleted file mode 100644 index ce026ec..0000000 --- a/openscap-1.3.5-almalinux.patch +++ /dev/null @@ -1,96 +0,0 @@ -diff -aruN openscap-1.3.6/cpe/openscap-cpe-oval.xml openscap-1.3.6.alma/cpe/openscap-cpe-oval.xml ---- openscap-1.3.6/cpe/openscap-cpe-oval.xml 2021-04-12 08:34:00.000000000 +0300 -+++ openscap-1.3.6.alma/cpe/openscap-cpe-oval.xml 2022-05-19 12:24:07.000000000 +0300 -@@ -133,6 +133,32 @@ - - - -+ -+ -+ AlmaLinux 8 -+ -+ AlmaLinux 8 -+ -+ -+ The operating system installed on the system is AlmaLinux 8 -+ -+ -+ -+ -+ -+ -+ -+ AlmaLinux 9 -+ -+ AlmaLinux 9 -+ -+ -+ The operating system installed on the system is AlmaLinux 9 -+ -+ -+ -+ -+ - - - Community Enterprise Operating System 5 -@@ -868,6 +894,16 @@ - - - -+ -+ -+ -+ -+ -+ -+ -+ - - -@@ -1223,6 +1259,9 @@ - - oraclelinux-release - -+ -+ almalinux-release -+ - - HKEY_LOCAL_MACHINE - SOFTWARE\Microsoft\Windows NT\CurrentVersion -@@ -1307,6 +1346,14 @@ - ^oraclelinux-release - ^8 - -+ -+ ^almalinux-release -+ ^8 -+ -+ -+ ^almalinux-release -+ ^9 -+ - - ^16$ - -diff -aruN openscap-1.3.6/cpe/openscap-cpe-dict.xml openscap-1.3.6.alma/cpe/openscap-cpe-dict.xml ---- openscap-1.3.6/cpe/openscap-cpe-dict.xml 2021-04-12 08:34:00.000000000 +0300 -+++ openscap-1.3.6.alma/cpe/openscap-cpe-dict.xml 2022-05-19 12:24:45.000000000 +0300 -@@ -37,6 +37,14 @@ - Community Enterprise Operating System 8 - oval:org.open-scap.cpe.centos:def:8 - -+ -+ AlmaLinux 8 -+ oval:org.open-scap.cpe.almalinux:def:8 -+ -+ -+ AlmaLinux 9 -+ oval:org.open-scap.cpe.almalinux:def:9 -+ - - Fedora 32 - oval:org.open-scap.cpe.fedora:def:32 diff --git a/openscap.spec b/openscap.spec index 7c34cfc..0f4af04 100644 --- a/openscap.spec +++ b/openscap.spec @@ -56,7 +56,7 @@ Requires: xmlsec1 Requires: xmlsec1-openssl # AlmaLinux patches -Patch1000: openscap-1.3.5-almalinux.patch +Patch1000: 0001-Add-AlmaLinux-to-CPE-dictionary.patch %description %{common_description}