| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<oval_definitions xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" 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"> |
| 3 |
<generator> |
| 4 |
<oval:schema_version>5.10.1</oval:schema_version> |
| 5 |
<oval:timestamp>0001-01-01T00:00:00+00:00</oval:timestamp> |
| 6 |
</generator> |
| 7 |
|
| 8 |
<definitions> |
| 9 |
<definition class="compliance" version="1" id="oval:x:def:1"> |
| 10 |
<metadata> |
| 11 |
<title>x</title> |
| 12 |
<description>x</description> |
| 13 |
<affected family="unix"> |
| 14 |
<platform>x</platform> |
| 15 |
</affected> |
| 16 |
</metadata> |
| 17 |
<criteria comment="dummy definition"> |
| 18 |
<criterion test_ref="oval:x:tst:1"/> |
| 19 |
</criteria> |
| 20 |
</definition> |
| 21 |
</definitions> |
| 22 |
|
| 23 |
<tests> |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
<rpmverify_test id="oval:x:tst:1" version="1" comment="test for 'not equals' operator" check_existence="only_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 31 |
<object object_ref="oval:x:obj:2"/> |
| 32 |
</rpmverify_test> |
| 33 |
</tests> |
| 34 |
|
| 35 |
<objects> |
| 36 |
<rpmverify_object id="oval:x:obj:1" version="1" comment="should return precisely one package" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 37 |
<name operation="pattern match"/> |
| 38 |
<filepath operation="pattern match">/etc/foobar</filepath> |
| 39 |
</rpmverify_object> |
| 40 |
|
| 41 |
<rpmverify_object id="oval:x:obj:2" version="1" comment="the path should match two packages but the result should only be one package" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 42 |
<name operation="not equal" var_ref="oval:x:var:1"/> |
| 43 |
<filepath operation="pattern match">/etc</filepath> |
| 44 |
</rpmverify_object> |
| 45 |
</objects> |
| 46 |
|
| 47 |
<variables> |
| 48 |
<local_variable id="oval:x:var:1" version="1" comment="name of the matching rpm package" datatype="string"> |
| 49 |
<object_component object_ref="oval:x:obj:1" item_field="name"/> |
| 50 |
</local_variable> |
| 51 |
</variables> |
| 52 |
</oval_definitions> |