From 4fcda3186ea4a3b5d34fd0b0b52d9cbda27836df Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Dec 13 2020 01:37:14 +0000 Subject: Add CentOS 8 CPE (backport upstream PR #1622) Without this, openscap doesn't really work on CentOS 8 at all. Signed-off-by: Adam Williamson --- diff --git a/SOURCES/openscap-1.3.5-centos8-cpe-PR_1622.patch b/SOURCES/openscap-1.3.5-centos8-cpe-PR_1622.patch new file mode 100644 index 0000000..a14654a --- /dev/null +++ b/SOURCES/openscap-1.3.5-centos8-cpe-PR_1622.patch @@ -0,0 +1,73 @@ +From 26ff8c8d0ed9b2b5852243e3d0546c7e0c7b038a Mon Sep 17 00:00:00 2001 +From: "(GalaxyMaster)" +Date: Tue, 10 Nov 2020 01:50:25 +1100 +Subject: [PATCH] Added CentOS 8 CPE + +Signed-off-by: (GalaxyMaster) +--- + cpe/openscap-cpe-dict.xml | 4 ++++ + cpe/openscap-cpe-oval.xml | 22 ++++++++++++++++++++++ + 2 files changed, 26 insertions(+) + +diff --git a/cpe/openscap-cpe-dict.xml b/cpe/openscap-cpe-dict.xml +index e140dbb0d..5ea7cb867 100644 +--- a/cpe/openscap-cpe-dict.xml ++++ b/cpe/openscap-cpe-dict.xml +@@ -49,6 +49,10 @@ + Community Enterprise Operating System 7 + oval:org.open-scap.cpe.rhel:def:1007 + ++ ++ Community Enterprise Operating System 8 ++ oval:org.open-scap.cpe.rhel:def:1008 ++ + + Scientific Linux 5 + oval:org.open-scap.cpe.scientific:def:5 +diff --git a/cpe/openscap-cpe-oval.xml b/cpe/openscap-cpe-oval.xml +index 51211777b..2d3ef02a2 100644 +--- a/cpe/openscap-cpe-oval.xml ++++ b/cpe/openscap-cpe-oval.xml +@@ -172,6 +172,19 @@ + + + ++ ++ ++ Community Enterprise Operating System 8 ++ ++ Community Enterprise Operating System 8 ++ ++ ++ The operating system installed on the system is Community Enterprise Operating System 8 ++ ++ ++ ++ ++ + + + Scientific Linux 5 +@@ -843,6 +856,11 @@ + + + ++ ++ ++ ++ + + +@@ -1205,6 +1223,10 @@ + ^centos-release + ^7 + ++ ++ ^centos-release ++ ^8 ++ + + ^sl-release + ^5 diff --git a/SPECS/openscap.spec b/SPECS/openscap.spec index 479007b..6a2bad0 100644 --- a/SPECS/openscap.spec +++ b/SPECS/openscap.spec @@ -13,6 +13,7 @@ Patch4: openscap-1.3.5-yamlfilecontent-fix-field-names-PR_1619.patch Patch5: openscap-1.3.5-memory-PR_1627.patch Patch6: openscap-1.3.5-use-MALLOC_CHECK-in-tests-PR_1635.patch Patch7: openscap-1.3.5-test-non-local-gpfs-PR_1653.patch +Patch8: openscap-1.3.5-centos8-cpe-PR_1622.patch BuildRequires: cmake >= 2.6 BuildRequires: swig libxml2-devel libxslt-devel perl-generators perl-XML-Parser BuildRequires: rpm-devel