Blame SOURCES/add_not_s390x_cpe_dictionary.diff

7303c7
diff --git a/rhel6/cpe/rhel6-cpe-dictionary.xml b/rhel6/cpe/rhel6-cpe-dictionary.xml
7303c7
index d0557cc..0984a4c 100644
7303c7
--- a/rhel6/cpe/rhel6-cpe-dictionary.xml
7303c7
+++ b/rhel6/cpe/rhel6-cpe-dictionary.xml
7303c7
@@ -100,4 +100,8 @@
7303c7
             <title xml:lang="en-us">Package net-snmp is installed</title>
7303c7
             <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="filename">installed_env_has_net-snmp_package</check>
7303c7
       </cpe-item>
7303c7
+      <cpe-item name="cpe:/a:not_s390x_arch">
7303c7
+            <title xml:lang="en-us">System architecture is not S390X</title>
7303c7
+            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="filename">proc_sys_kernel_osrelease_arch_not_s390x</check>
7303c7
+      </cpe-item>
7303c7
 </cpe-list>
f8899d
diff --git a/rhel7/cpe/rhel7-cpe-dictionary.xml b/rhel7/cpe/rhel7-cpe-dictionary.xml
f8899d
index 50f8006c9..2a3915364 100644
f8899d
--- a/rhel7/cpe/rhel7-cpe-dictionary.xml
f8899d
+++ b/rhel7/cpe/rhel7-cpe-dictionary.xml
f8899d
@@ -87,6 +87,10 @@
f8899d
             
f8899d
             <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="filename">installed_env_has_login_defs</check>
f8899d
       </cpe-item>
f8899d
+      <cpe-item name="cpe:/a:not_s390x_arch">
f8899d
+            <title xml:lang="en-us">System architecture is not S390X</title>
f8899d
+            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="filename">proc_sys_kernel_osrelease_arch_not_s390x</check>
f8899d
+      </cpe-item>
f8899d
       <cpe-item name="cpe:/a:sssd">
f8899d
             <title xml:lang="en-us">Package sssd-common is installed</title>
f8899d
             
f8899d
diff --git a/rhel8/cpe/rhel8-cpe-dictionary.xml b/rhel8/cpe/rhel8-cpe-dictionary.xml
f8899d
index 3b9b4fc03..ce675614e 100644
f8899d
--- a/rhel8/cpe/rhel8-cpe-dictionary.xml
f8899d
+++ b/rhel8/cpe/rhel8-cpe-dictionary.xml
f8899d
@@ -57,6 +57,10 @@
f8899d
             
f8899d
             <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="filename">installed_env_has_login_defs</check>
f8899d
       </cpe-item>
f8899d
+      <cpe-item name="cpe:/a:not_s390x_arch">
f8899d
+            <title xml:lang="en-us">System architecture is not S390X</title>
f8899d
+            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="filename">proc_sys_kernel_osrelease_arch_not_s390x</check>
f8899d
+      </cpe-item>
f8899d
       <cpe-item name="cpe:/a:sssd">
f8899d
             <title xml:lang="en-us">Package sssd-common is installed</title>
f8899d
             
f8899d
diff --git a/ssg/constants.py b/ssg/constants.py
f8899d
index 6ba70982a..3054c3e55 100644
f8899d
--- a/ssg/constants.py
f8899d
+++ b/ssg/constants.py
f8899d
@@ -451,6 +451,7 @@ XCCDF_PLATFORM_TO_CPE = {
f8899d
     "yum": "cpe:/a:yum",
f8899d
     "zipl": "cpe:/a:zipl",
f8899d
     "net-snmp": "cpe:/a:net-snmp",
f8899d
+    "not_s390x_arch": "cpe:/a:not_s390x_arch",
f8899d
 }
f8899d
 
f8899d
 # Default platform to package mapping