| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | cat <<EOF |
| 4 | <?xml version="1.0"?> |
| 5 | <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"> |
| 6 | |
| 7 | <generator> |
| 8 | <oval:product_name>runlevel</oval:product_name> |
| 9 | <oval:product_version>1.0</oval:product_version> |
| 10 | <oval:schema_version>5.8</oval:schema_version> |
| 11 | <oval:timestamp>2022-03-31T00:00:00-00:00</oval:timestamp> |
| 12 | </generator> |
| 13 | |
| 14 | <definitions> |
| 15 | <definition class="compliance" version="1" id="oval:1:def:1" > <!-- comment="true" --> |
| 16 | <metadata> |
| 17 | <title></title> |
| 18 | <description></description> |
| 19 | </metadata> |
| 20 | <criteria> |
| 21 | <criterion test_ref="oval:1:tst:1"/> |
| 22 | </criteria> |
| 23 | </definition> |
| 24 | </definitions> |
| 25 | |
| 26 | <tests> |
| 27 | <runlevel_test comment="true" version="1" id="oval:1:tst:1" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 28 | <object object_ref="oval:1:obj:1"/> |
| 29 | </runlevel_test> |
| 30 | </tests> |
| 31 | |
| 32 | <objects> |
| 33 | <runlevel_object version="1" id="oval:1:obj:1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 34 | <service_name operation="pattern match">^((${1})|(${2}))$</service_name> |
| 35 | <runlevel>3</runlevel> |
| 36 | </runlevel_object> |
| 37 | </objects> |
| 38 | </oval_definitions> |
| 39 | EOF |