Skip to content

Commit

Permalink
Add Fedora 28 CPEs
Browse files Browse the repository at this point in the history
Fedora 27 has been branched.
  • Loading branch information
jan-cerny committed Aug 17, 2017
1 parent 7623bb3 commit daafbf3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpe/openscap-cpe-dict.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@
<title xml:lang="en-us">Fedora 27</title>
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.fedora:def:27</check>
</cpe-item>
<cpe-item name="cpe:/o:fedoraproject:fedora:28">
<title xml:lang="en-us">Fedora 28</title>
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.fedora:def:28</check>
</cpe-item>
<cpe-item name="cpe:/o:suse:sle">
<title xml:lang="en-us">SUSE Linux Enterprise all versions</title>
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.sle:def:1</check>
Expand Down
21 changes: 21 additions & 0 deletions cpe/openscap-cpe-oval.xml
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,19 @@
<criterion comment="Fedora 27 is installed" test_ref="oval:org.open-scap.cpe.fedora:tst:27"/>
</criteria>
</definition>
<definition class="inventory" id="oval:org.open-scap.cpe.fedora:def:28" version="1">
<metadata>
<title>Fedora 28</title>
<affected family="unix">
<platform>Fedora 28</platform>
</affected>
<reference ref_id="cpe:/o:fedoraproject:fedora:28" source="CPE"/>
<description>The operating system installed on the system is Fedora 28</description>
</metadata>
<criteria>
<criterion comment="Fedora 28 is installed" test_ref="oval:org.open-scap.cpe.fedora:tst:28"/>
</criteria>
</definition>

<definition class="inventory" id="oval:org.open-scap.cpe.sle:def:1" version="1">
<metadata>
Expand Down Expand Up @@ -671,6 +684,11 @@
<object object_ref="oval:org.open-scap.cpe.fedora-release:obj:2"/>
<state state_ref="oval:org.open-scap.cpe.fedora:ste:27"/>
</rpminfo_test>
<rpminfo_test check_existence="at_least_one_exists" id="oval:org.open-scap.cpe.fedora:tst:28" version="1" check="at least one" comment="fedora-release is version Fedora 28"
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:org.open-scap.cpe.fedora-release:obj:2"/>
<state state_ref="oval:org.open-scap.cpe.fedora:ste:28"/>
</rpminfo_test>
<rpminfo_test check_existence="at_least_one_exists" id="oval:org.open-scap.cpe.sles:tst:1" version="1" check="at least one" comment="/etc/sles-release is provided by sles-release package"
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:org.open-scap.cpe.sles-release:obj:1"/>
Expand Down Expand Up @@ -919,6 +937,9 @@
<rpminfo_state id="oval:org.open-scap.cpe.fedora:ste:27" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<version operation="pattern match">^27$</version>
</rpminfo_state>
<rpminfo_state id="oval:org.open-scap.cpe.fedora:ste:28" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<version operation="pattern match">^28$</version>
</rpminfo_state>
<rpminfo_state id="oval:org.open-scap.cpe.sles:ste:1" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<name operation="pattern match">^sles-release</name>
</rpminfo_state>
Expand Down

0 comments on commit daafbf3

Please sign in to comment.