Skip to content

Commit

Permalink
Merge pull request #2097 from evgenyz/remove-cpe-dict
Browse files Browse the repository at this point in the history
Remove CPE dictionary
  • Loading branch information
jan-cerny authored May 9, 2024
2 parents c3c695c + 6aa4bf3 commit 74043f7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1,486 deletions.
13 changes: 1 addition & 12 deletions cpe/README
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
This folder contains the default CPE dictionary and its associated OVAL file.

Synchronized with the official NIST NVD CPE Dictionary v2.3
from https://nvd.nist.gov/products/cpe with the following exceptions,
that are kept for backward-compatibility:

cpe:/o:redhat:enterprise_linux:6 deprecated
cpe:/o:redhat:enterprise_linux:7 no cover-all name for 7.x versions
cpe:/o:redhat:enterprise_linux:8 no cover-all name for 8.x versions
cpe:/o:centos:centos:7 no cover-all name for 7.x versions
cpe:/o:centos:centos:8 no cover-all name for 8.x versions

In the next API-breaking version the internal CPE dictionary will be removed
completely.
It has only one dummy entry and can be customized by a distribution packager.
57 changes: 4 additions & 53 deletions cpe/openscap-cpe-dict.xml
Original file line number Diff line number Diff line change
@@ -1,56 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<cpe-list xmlns="http://cpe.mitre.org/dictionary/2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<cpe-item name="cpe:/o:redhat:enterprise_linux:-">
<title xml:lang="en-us">Red Hat Enterprise Linux</title>
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.rhel:def:1</check>
</cpe-item>
<cpe-item name="cpe:/o:redhat:enterprise_linux:5">
<title xml:lang="en-us">Red Hat Enterprise Linux 5</title>
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.rhel:def:5</check>
</cpe-item>
<cpe-item name="cpe:/o:redhat:enterprise_linux:6">
<title xml:lang="en-us">Red Hat Enterprise Linux 6</title>
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.rhel:def:6</check>
</cpe-item>
<cpe-item name="cpe:/o:redhat:enterprise_linux:7">
<title xml:lang="en-us">Red Hat Enterprise Linux 7</title>
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.rhel:def:7</check>
</cpe-item>
<cpe-item name="cpe:/o:redhat:enterprise_linux:8">
<title xml:lang="en-us">Red Hat Enterprise Linux 8</title>
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.rhel:def:8</check>
</cpe-item>
<cpe-item name="cpe:/o:centos:centos:5">
<title xml:lang="en-us">Community Enterprise Operating System 5</title>
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.rhel:def:1005</check>
</cpe-item>
<cpe-item name="cpe:/o:centos:centos:6">
<title xml:lang="en-us">Community Enterprise Operating System 6</title>
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.rhel:def:1006</check>
</cpe-item>
<cpe-item name="cpe:/o:centos:centos:7">
<title xml:lang="en-us">Community Enterprise Operating System 7</title>
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.rhel:def:1007</check>
</cpe-item>
<cpe-item name="cpe:/o:centos:centos:8">
<title xml:lang="en-us">Community Enterprise Operating System 8</title>
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.centos:def:8</check>
</cpe-item>
<cpe-item name="cpe:/o:fedoraproject:fedora:32">
<title xml:lang="en-us">Fedora 32</title>
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.fedora:def:32</check>
</cpe-item>
<cpe-item name="cpe:/o:fedoraproject:fedora:33">
<title xml:lang="en-us">Fedora 33</title>
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.fedora:def:33</check>
</cpe-item>
<cpe-item name="cpe:/o:fedoraproject:fedora:34">
<title xml:lang="en-us">Fedora 34</title>
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.fedora:def:34</check>
</cpe-item>
<cpe-item name="cpe:/o:fedoraproject:fedora:35">
<title xml:lang="en-us">Fedora 35</title>
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.fedora:def:35</check>
<cpe-list xmlns="http://cpe.mitre.org/dictionary/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<cpe-item name="cpe:/o:linux:linux_kernel:-">
<title xml:lang="en-us">Linux</title>
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.linux:def:1</check>
</cpe-item>
</cpe-list>
Loading

0 comments on commit 74043f7

Please sign in to comment.