| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <definition xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" |
| 3 | xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" |
| 4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 5 | xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" |
| 6 | xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" |
| 7 | xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" |
| 8 | xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" |
| 9 | class="compliance" |
| 10 | version="1" |
| 11 | id="oval:tresys.example:def:1"> |
| 12 | <generator> |
| 13 | <oval:product_name>oval_probes Python Example</oval:product_name> |
| 14 | <oval:product_version>1.0</oval:product_version> |
| 15 | <oval:schema_version>5.5</oval:schema_version> |
| 16 | <oval:timestamp>2010-01-12T00:00:00-00:00</oval:timestamp> |
| 17 | </generator> |
| 18 | <definitions> |
| 19 | <definition class="inventory" version="1" id="oval:tresys.example:def:1"> |
| 20 | <metadata> |
| 21 | <title>Fedora OS installed</title> |
| 22 | <affected family="unix"> |
| 23 | <platform>Fedora</platform> |
| 24 | </affected> |
| 25 | <reference ref_id="cpe:/o:fedoraproject:fedora" source="CPE"/> |
| 26 | <description>You are running the test on a Fedora System</description> |
| 27 | </metadata> |
| 28 | <criteria> |
| 29 | <criterion test_ref="oval:tresys.example:tst:1" |
| 30 | comment="Fedora is installed"/> |
| 31 | <criterion test_ref="oval:tresys.example:tst:2" |
| 32 | comment="Installed operating system is part of the unix family"/> |
| 33 | </criteria> |
| 34 | </definition> |
| 35 | </definitions> |
| 36 | <tests> |
| 37 | <rpminfo_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" |
| 38 | check_existence="at_least_one_exists" |
| 39 | comment="Fedora Version is 1-12" |
| 40 | version="1" |
| 41 | id="oval:tresys.example:tst:1" |
| 42 | check="at least one"> |
| 43 | <object object_ref="oval:tresys.example:obj:1"/> |
| 44 | <state state_ref="oval:tresys.example:ste:1"/> |
| 45 | </rpminfo_test> |
| 46 | <family_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" |
| 47 | check_existence="at_least_one_exists" |
| 48 | comment="System is part of the Unix family" |
| 49 | version="1" |
| 50 | id="oval:tresys.example:tst:2" |
| 51 | check="only one"> |
| 52 | <object object_ref="oval:tresys.example:obj:2"/> |
| 53 | <state state_ref="oval:tresys.example:ste:2"/> |
| 54 | </family_test> |
| 55 | </tests> |
| 56 | <objects> |
| 57 | <rpminfo_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" version="1" |
| 58 | id="oval:tresys.example:obj:1"> |
| 59 | <name>fedora-release</name> |
| 60 | </rpminfo_object> |
| 61 | <family_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" |
| 62 | version="1" |
| 63 | id="oval:tresys.example:obj:2"/> |
| 64 | |
| 65 | </objects> |
| 66 | <states> |
| 67 | <rpminfo_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" version="1" |
| 68 | id="oval:tresys.example:ste:1"> |
| 69 | <version operation="pattern match">[0-9]*</version> |
| 70 | </rpminfo_state> |
| 71 | <family_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" |
| 72 | version="1" |
| 73 | id="oval:tresys.example:ste:2"> |
| 74 | <family>unix</family> |
| 75 | </family_state> |
| 76 | </states> |
| 77 | </definition> |