| 1 | <?xml version="1.0"?> |
| 2 | <oval_definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" |
| 4 | xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" |
| 5 | xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" |
| 6 | xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" |
| 7 | xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" |
| 8 | xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 9 | <generator> |
| 10 | <oval:product_name>vim</oval:product_name> |
| 11 | <oval:schema_version>5.8</oval:schema_version> |
| 12 | <oval:timestamp>2011-03-06T12:00:00-04:00</oval:timestamp> |
| 13 | </generator> |
| 14 | <definitions> |
| 15 | <definition class="compliance" id="oval:org.open-scap.rhel6:def:1077" version="1"> |
| 16 | <metadata> |
| 17 | <title>Modify the System Login Banner</title> |
| 18 | <reference ref_id="CCE-4060-0" source="CCE"/> |
| 19 | <description>The system login banner text should be set correctly.</description> |
| 20 | </metadata> |
| 21 | <criteria> |
| 22 | <criterion comment="/etc/issue is set appropriately" test_ref="oval:org.open-scap.rhel6:tst:10771"/> |
| 23 | </criteria> |
| 24 | </definition> |
| 25 | </definitions> |
| 26 | |
| 27 | |
| 28 | <tests> |
| 29 | <ind-def:textfilecontent54_test check_existence="all_exist" id="oval:org.open-scap.rhel6:tst:10771" version="1" check="all" comment="Tests contents of /etc/issue"> |
| 30 | <ind-def:object object_ref="oval:org.open-scap.rhel6:obj:107711"/> |
| 31 | <ind-def:state state_ref="oval:org.open-scap.rhel6:ste:107711"/> |
| 32 | </ind-def:textfilecontent54_test> |
| 33 | </tests> |
| 34 | |
| 35 | |
| 36 | <objects> |
| 37 | <ind-def:textfilecontent54_object id="oval:org.open-scap.rhel6:obj:107711" version="1" comment="Contents of /etc/issue"> |
| 38 | <ind-def:behaviors multiline="false" singleline="true"/> |
| 39 | <ind-def:filepath>/etc/issue</ind-def:filepath> |
| 40 | <ind-def:pattern operation="pattern match">(.*[^\n])\n?</ind-def:pattern> |
| 41 | <ind-def:instance datatype="int">1</ind-def:instance> |
| 42 | </ind-def:textfilecontent54_object> |
| 43 | </objects> |
| 44 | |
| 45 | |
| 46 | <states> |
| 47 | <ind-def:textfilecontent54_state id="oval:org.open-scap.rhel6:ste:107711" version="1" comment="Expected contents of /etc/issue"> |
| 48 | <ind-def:subexpression var_check="all" var_ref="oval:org.open-scap.rhel6:var:1077"/> |
| 49 | </ind-def:textfilecontent54_state> |
| 50 | </states> |
| 51 | |
| 52 | <variables> |
| 53 | <external_variable id="oval:org.open-scap.rhel6:var:1077" version="1" datatype="string" comment="Login banner"/> |
| 54 | </variables> |
| 55 | |
| 56 | </oval_definitions> |
| 57 |