Skip to content

Commit afd18c1

Browse files
authored
Merge pull request #1172 from jan-cerny/f30cpe
Add Fedora 30 CPE
2 parents f15145b + 0665e4b commit afd18c1

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

cpe/openscap-cpe-dict.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@
109109
<title xml:lang="en-us">Fedora 29</title>
110110
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.fedora:def:29</check>
111111
</cpe-item>
112+
<cpe-item name="cpe:/o:fedoraproject:fedora:30">
113+
<title xml:lang="en-us">Fedora 30</title>
114+
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.fedora:def:30</check>
115+
</cpe-item>
112116
<cpe-item name="cpe:/o:suse:sle">
113117
<title xml:lang="en-us">SUSE Linux Enterprise all versions</title>
114118
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.sle:def:1</check>

cpe/openscap-cpe-oval.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,19 @@
367367
<criterion comment="Fedora 29 is installed" test_ref="oval:org.open-scap.cpe.fedora:tst:29"/>
368368
</criteria>
369369
</definition>
370+
<definition class="inventory" id="oval:org.open-scap.cpe.fedora:def:30" version="1">
371+
<metadata>
372+
<title>Fedora 30</title>
373+
<affected family="unix">
374+
<platform>Fedora 30</platform>
375+
</affected>
376+
<reference ref_id="cpe:/o:fedoraproject:fedora:30" source="CPE"/>
377+
<description>The operating system installed on the system is Fedora 30</description>
378+
</metadata>
379+
<criteria>
380+
<criterion comment="Fedora 30 is installed" test_ref="oval:org.open-scap.cpe.fedora:tst:30"/>
381+
</criteria>
382+
</definition>
370383

371384
<definition class="inventory" id="oval:org.open-scap.cpe.sle:def:1" version="1">
372385
<metadata>
@@ -735,6 +748,11 @@
735748
<object object_ref="oval:org.open-scap.cpe.fedora-release:obj:2"/>
736749
<state state_ref="oval:org.open-scap.cpe.fedora:ste:29"/>
737750
</rpminfo_test>
751+
<rpminfo_test check_existence="at_least_one_exists" id="oval:org.open-scap.cpe.fedora:tst:30" version="1" check="at least one" comment="fedora-release is version Fedora 30"
752+
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
753+
<object object_ref="oval:org.open-scap.cpe.fedora-release:obj:2"/>
754+
<state state_ref="oval:org.open-scap.cpe.fedora:ste:30"/>
755+
</rpminfo_test>
738756
<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"
739757
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
740758
<object object_ref="oval:org.open-scap.cpe.sles-release:obj:1"/>
@@ -999,6 +1017,9 @@
9991017
<rpminfo_state id="oval:org.open-scap.cpe.fedora:ste:29" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
10001018
<version operation="pattern match">^29$</version>
10011019
</rpminfo_state>
1020+
<rpminfo_state id="oval:org.open-scap.cpe.fedora:ste:30" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
1021+
<version operation="pattern match">^30$</version>
1022+
</rpminfo_state>
10021023
<rpminfo_state id="oval:org.open-scap.cpe.sles:ste:1" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
10031024
<name operation="pattern match">^sles-release</name>
10041025
</rpminfo_state>

0 commit comments

Comments
 (0)