| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <oval_definitions |
| 3 | xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" |
| 4 | xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" |
| 5 | xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" |
| 6 | xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" |
| 7 | xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" |
| 8 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 9 | <generator> |
| 10 | <oval:product_name>vim</oval:product_name> |
| 11 | <oval:schema_version>5.10.1</oval:schema_version> |
| 12 | <oval:timestamp>2020-06-24T00:00:00+01:00</oval:timestamp> |
| 13 | </generator> |
| 14 | <definitions> |
| 15 | <definition class="inventory" id="oval:true:def:1" version="1"> |
| 16 | <metadata> |
| 17 | <title>Always succeed</title> |
| 18 | <reference ref_id="cpe:/a:true" source="CPE"/> |
| 19 | <description>Should pass on every platform</description> |
| 20 | </metadata> |
| 21 | <criteria> |
| 22 | <criterion comment="x" test_ref="oval:x:tst:1"/> |
| 23 | </criteria> |
| 24 | </definition> |
| 25 | <definition class="inventory" id="oval:false:def:1" version="1"> |
| 26 | <metadata> |
| 27 | <title>Always fail</title> |
| 28 | <reference ref_id="cpe:/a:true" source="CPE"/> |
| 29 | <description>Should fail on every platform</description> |
| 30 | </metadata> |
| 31 | <criteria> |
| 32 | <criterion comment="x" negate="true" test_ref="oval:x:tst:1"/> |
| 33 | </criteria> |
| 34 | </definition> |
| 35 | <definition class="compliance" id="oval:rule:def:1" version="1"> |
| 36 | <metadata> |
| 37 | <title>Always true rule check</title> |
| 38 | <reference ref_id="oval:x:tst:1" source="elpmaxe"/> |
| 39 | <description>Should pass on every platform</description> |
| 40 | </metadata> |
| 41 | <criteria> |
| 42 | <criterion comment="x" test_ref="oval:x:tst:1"/> |
| 43 | </criteria> |
| 44 | </definition> |
| 45 | </definitions> |
| 46 | <tests> |
| 47 | <ind-def:variable_test id="oval:x:tst:1" version="1" check="all" comment="."> |
| 48 | <ind-def:object object_ref="oval:x:obj:1"/> |
| 49 | <ind-def:state state_ref="oval:x:ste:1"/> |
| 50 | </ind-def:variable_test> |
| 51 | </tests> |
| 52 | <objects> |
| 53 | <ind-def:variable_object id="oval:x:obj:1" version="1"> |
| 54 | <ind-def:var_ref>oval:x:var:1</ind-def:var_ref> |
| 55 | </ind-def:variable_object> |
| 56 | </objects> |
| 57 | <states> |
| 58 | <ind-def:variable_state id="oval:x:ste:1" version="1"> |
| 59 | <ind-def:value operation="greater than" datatype="float">1.0</ind-def:value> |
| 60 | </ind-def:variable_state> |
| 61 | </states> |
| 62 | <variables> |
| 63 | <constant_variable id="oval:x:var:1" version="1" datatype="float" comment="."> |
| 64 | <value>4.0</value> |
| 65 | </constant_variable> |
| 66 | </variables> |
| 67 | </oval_definitions> |