1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
<?xml version="1.0" encoding="UTF-8"?>
<oval_definitions xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"
xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"
xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"
xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5"
xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd
http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd
http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd
http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd
http://oval.mitre.org/XMLSchema/oval-common-5 oval-common-schema.xsd">
<generator>
<oval:product_name>Šimon Lukašík</oval:product_name>
<oval:schema_version>5.10.1</oval:schema_version>
<oval:timestamp>2013-06-01T12:00:00+02:00</oval:timestamp>
</generator>
<definitions>
<definition class="compliance" id="oval:com.example.www:def:1" version="1">
<metadata>
<title>Lookup correct value set in an XML file</title>
<affected family="unix">
<platform>Red Hat Enterprise Linux X</platform>
</affected>
<reference ref_id="CCE-3315-9" source="CCE"/>
<description>This description is self explanatory.</description>
</metadata>
<criteria>
<criterion test_ref="oval:com.example.www:tst:1"/>
</criteria>
</definition>
<definition class="compliance" id="oval:com.example.www:def:2" version="1">
<metadata>
<title>Lookup correct value in an XML file determined by OVAL variable</title>
<description>Everyone needs a description</description>
</metadata>
<criteria>
<criterion test_ref="oval:com.example.www:tst:2"/>
</criteria>
</definition>
</definitions>
<tests>
<ind-def:xmlfilecontent_test id="oval:com.example.www:tst:1" version="1" check="at least one" comment="File shall contain both values">
<ind-def:object object_ref="oval:com.example.www:obj:1"/>
<ind-def:state state_ref="oval:com.example.www:ste:1"/>
</ind-def:xmlfilecontent_test>
<ind-def:xmlfilecontent_test id="oval:com.example.www:tst:2" version="1" check="at least one" comment="It is better to be roughly right, then precisely wrong.">
<ind-def:object object_ref="oval:com.example.www:obj:2"/>
<ind-def:state state_ref="oval:com.example.www:ste:2"/>
</ind-def:xmlfilecontent_test>
</tests>
<objects>
<ind-def:xmlfilecontent_object id="oval:com.example.www:obj:1" version="1">
<ind-def:filepath>./testing_file.xml</ind-def:filepath>
<ind-def:xpath>/root/object/@value</ind-def:xpath>
</ind-def:xmlfilecontent_object>
<ind-def:xmlfilecontent_object id="oval:com.example.www:obj:2" version="1">
<ind-def:filepath datatype="string" operation="equals" var_ref="oval:com.example.www:var:2"/>
<ind-def:xpath>/root/object/@value</ind-def:xpath>
</ind-def:xmlfilecontent_object>
</objects>
<states>
<ind-def:xmlfilecontent_state id="oval:com.example.www:ste:1" version="1" comment="our dummy content of the file">
<ind-def:value_of datatype="string" operation="equals" var_check="all" var_ref="oval:com.example.www:var:1"/>
</ind-def:xmlfilecontent_state>
<ind-def:xmlfilecontent_state id="oval:com.example.www:ste:2" version="1" comment="our dummy content of the file">
<ind-def:value_of datatype="string" operation="equals" var_check="all" var_ref="oval:com.example.www:var:1"/>
</ind-def:xmlfilecontent_state>
</states>
<variables>
<external_variable id="oval:com.example.www:var:1" version="1" datatype="string" comment="External variable"/>
<external_variable id="oval:com.example.www:var:2" version="1" datatype="string" comment="External variable"/>
</variables>
</oval_definitions>
|