forked from pool/openscap
Marcus Meissner
6f88887bae
openscap: add opensuse tumbleweed OBS-URL: https://build.opensuse.org/request/show/906300 OBS-URL: https://build.opensuse.org/package/show/security/openscap?expand=0&rev=263
107 lines
7.3 KiB
Diff
107 lines
7.3 KiB
Diff
Index: openscap-1.3.5/cpe/openscap-cpe-dict.xml
|
|
===================================================================
|
|
--- openscap-1.3.5.orig/cpe/openscap-cpe-dict.xml
|
|
+++ openscap-1.3.5/cpe/openscap-cpe-dict.xml
|
|
@@ -69,4 +69,20 @@
|
|
<title xml:lang="en-us">openSUSE Tumbleweed</title>
|
|
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.opensuse:def:9999</check>
|
|
</cpe-item>
|
|
+ <cpe-item name="cpe:/o:suse:sles:12">
|
|
+ <title xml:lang="en-us">SUSE Linux Enterprise Server 12</title>
|
|
+ <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.sles:def:12</check>
|
|
+ </cpe-item>
|
|
+ <cpe-item name="cpe:/o:suse:sled:12">
|
|
+ <title xml:lang="en-us">SUSE Linux Enterprise Desktop 12</title>
|
|
+ <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.sled:def:12</check>
|
|
+ </cpe-item>
|
|
+ <cpe-item name="cpe:/o:suse:sles:15">
|
|
+ <title xml:lang="en-us">SUSE Linux Enterprise Server 15</title>
|
|
+ <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.sles:def:15</check>
|
|
+ </cpe-item>
|
|
+ <cpe-item name="cpe:/o:suse:sled:15">
|
|
+ <title xml:lang="en-us">SUSE Linux Enterprise Desktop 15</title>
|
|
+ <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.sled:def:15</check>
|
|
+ </cpe-item>
|
|
</cpe-list>
|
|
Index: openscap-1.3.5/cpe/openscap-cpe-oval.xml
|
|
===================================================================
|
|
--- openscap-1.3.5.orig/cpe/openscap-cpe-oval.xml
|
|
+++ openscap-1.3.5/cpe/openscap-cpe-oval.xml
|
|
@@ -742,6 +742,32 @@
|
|
<criterion comment="openSUSE Tumbleweed is installed" test_ref="oval:org.open-scap.cpe.opensuse:tst:9999"/>
|
|
</criteria>
|
|
</definition>
|
|
+ <definition class="inventory" id="oval:org.open-scap.cpe.sles:def:15" version="1">
|
|
+ <metadata>
|
|
+ <title>SUSE Linux Enterprise Server 15</title>
|
|
+ <affected family="unix">
|
|
+ <platform>SUSE Linux Enterprise Server 15</platform>
|
|
+ </affected>
|
|
+ <reference ref_id="cpe:/o:suse:sles:15" source="CPE"/>
|
|
+ <description>The operating system installed on the system is SUSE Linux Enterprise Server 15</description>
|
|
+ </metadata>
|
|
+ <criteria>
|
|
+ <criterion comment="SLES 15 is installed" test_ref="oval:org.open-scap.cpe.sles:tst:15"/>
|
|
+ </criteria>
|
|
+ </definition>
|
|
+ <definition class="inventory" id="oval:org.open-scap.cpe.sled:def:15" version="1">
|
|
+ <metadata>
|
|
+ <title>SUSE Linux Enterprise Desktop 15</title>
|
|
+ <affected family="unix">
|
|
+ <platform>SUSE Linux Enterprise Desktop 15</platform>
|
|
+ </affected>
|
|
+ <reference ref_id="cpe:/o:suse:sled:15" source="CPE"/>
|
|
+ <description>The operating system installed on the system is SUSE Linux Enterprise Desktop 15</description>
|
|
+ </metadata>
|
|
+ <criteria>
|
|
+ <criterion comment="SLED 15 is installed" test_ref="oval:org.open-scap.cpe.sled:tst:15"/>
|
|
+ </criteria>
|
|
+ </definition>
|
|
<definition class="inventory" id="oval:org.open-scap.cpe.wrlinux:def:1" version="1" >
|
|
<metadata>
|
|
<title>Wind River Linux</title>
|
|
@@ -1084,6 +1110,11 @@
|
|
<object object_ref="oval:org.open-scap.cpe.sles-release:obj:1"/>
|
|
<state state_ref="oval:org.open-scap.cpe.sles:ste:12"/>
|
|
</rpminfo_test>
|
|
+ <rpminfo_test check_existence="at_least_one_exists" id="oval:org.open-scap.cpe.sles:tst:15" version="1" check="at least one" comment="sles-release is version 15"
|
|
+ xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
|
|
+ <object object_ref="oval:org.open-scap.cpe.sles-release:obj:1"/>
|
|
+ <state state_ref="oval:org.open-scap.cpe.sles:ste:15"/>
|
|
+ </rpminfo_test>
|
|
<rpminfo_test check_existence="at_least_one_exists" id="oval:org.open-scap.cpe.sled:tst:10" version="1" check="at least one" comment="sled-release is version 10"
|
|
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
|
|
<object object_ref="oval:org.open-scap.cpe.sled-release:obj:1"/>
|
|
@@ -1099,6 +1130,11 @@
|
|
<object object_ref="oval:org.open-scap.cpe.sled-release:obj:1"/>
|
|
<state state_ref="oval:org.open-scap.cpe.sled:ste:12"/>
|
|
</rpminfo_test>
|
|
+ <rpminfo_test check_existence="at_least_one_exists" id="oval:org.open-scap.cpe.sled:tst:15" version="1" check="at least one" comment="sled-release is version 15"
|
|
+ xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
|
|
+ <object object_ref="oval:org.open-scap.cpe.sled-release:obj:1"/>
|
|
+ <state state_ref="oval:org.open-scap.cpe.sled:ste:15"/>
|
|
+ </rpminfo_test>
|
|
<rpminfo_test check_existence="at_least_one_exists" id="oval:org.open-scap.cpe.opensuse:tst:1" version="1" check="at least one" comment="openSUSE-release is version 11.4"
|
|
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
|
|
<object object_ref="oval:org.open-scap.cpe.openSUSE-release:obj:1"/>
|
|
@@ -1454,6 +1490,9 @@
|
|
<rpminfo_state id="oval:org.open-scap.cpe.sles:ste:12" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
|
|
<version operation="pattern match">^12($|[^\d])</version>
|
|
</rpminfo_state>
|
|
+ <rpminfo_state id="oval:org.open-scap.cpe.sles:ste:15" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
|
|
+ <version operation="pattern match">^15($|[^\d])</version>
|
|
+ </rpminfo_state>
|
|
<rpminfo_state id="oval:org.open-scap.cpe.sled:ste:10" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
|
|
<version operation="pattern match">^10($|[^\d])</version>
|
|
</rpminfo_state>
|
|
@@ -1463,6 +1502,9 @@
|
|
<rpminfo_state id="oval:org.open-scap.cpe.sled:ste:12" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
|
|
<version operation="pattern match">^12($|[^\d])</version>
|
|
</rpminfo_state>
|
|
+ <rpminfo_state id="oval:org.open-scap.cpe.sled:ste:15" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
|
|
+ <version operation="pattern match">^15($|[^\d])</version>
|
|
+ </rpminfo_state>
|
|
<rpminfo_state id="oval:org.open-scap.cpe.opensuse:ste:2" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
|
|
<name operation="pattern match">^openSUSE-release</name>
|
|
</rpminfo_state>
|