| 1 |
<?xml version="1.0"?> |
| 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 |
|
| 4 |
<generator> |
| 5 |
<oval:product_name>systemdunitproperty</oval:product_name> |
| 6 |
<oval:product_version>1.0</oval:product_version> |
| 7 |
<oval:schema_version>5.11</oval:schema_version> |
| 8 |
<oval:timestamp>2014-06-18T00:00:00-00:00</oval:timestamp> |
| 9 |
</generator> |
| 10 |
|
| 11 |
<definitions> |
| 12 |
|
| 13 |
<definition class="compliance" version="1" id="oval:0:def:1"> |
| 14 |
<metadata><title></title><description></description></metadata> |
| 15 |
<notes><note>asdasd</note></notes> |
| 16 |
<criteria> |
| 17 |
<criterion test_ref="oval:0:tst:1"/> |
| 18 |
</criteria> |
| 19 |
</definition> |
| 20 |
|
| 21 |
<definition class="compliance" version="1" id="oval:0:def:2"> |
| 22 |
<metadata><title></title><description></description></metadata> |
| 23 |
<notes><oval:note>asdasd</oval:note></notes> |
| 24 |
<criteria> |
| 25 |
<criterion test_ref="oval:0:tst:2"/> |
| 26 |
</criteria> |
| 27 |
</definition> |
| 28 |
|
| 29 |
<definition class="compliance" version="1" id="oval:0:def:3"> |
| 30 |
<metadata><title></title><description></description></metadata> |
| 31 |
<criteria> |
| 32 |
<criterion test_ref="oval:0:tst:3"/> |
| 33 |
</criteria> |
| 34 |
</definition> |
| 35 |
|
| 36 |
<definition class="compliance" version="1" id="oval:0:def:4"> |
| 37 |
<metadata><title></title><description></description></metadata> |
| 38 |
<criteria> |
| 39 |
<criterion test_ref="oval:0:tst:4"/> |
| 40 |
</criteria> |
| 41 |
</definition> |
| 42 |
|
| 43 |
<definition class="compliance" version="1" id="oval:0:def:5"> |
| 44 |
<metadata><title></title><description></description></metadata> |
| 45 |
<criteria> |
| 46 |
<criterion test_ref="oval:0:tst:5"/> |
| 47 |
</criteria> |
| 48 |
</definition> |
| 49 |
|
| 50 |
<definition class="compliance" version="1" id="oval:0:def:6"> |
| 51 |
<metadata><title></title><description></description></metadata> |
| 52 |
<criteria> |
| 53 |
<criterion test_ref="oval:0:tst:6"/> |
| 54 |
</criteria> |
| 55 |
</definition> |
| 56 |
|
| 57 |
<definition class="compliance" version="1" id="oval:0:def:7"> |
| 58 |
<metadata><title></title><description></description></metadata> |
| 59 |
<criteria> |
| 60 |
<criterion test_ref="oval:0:tst:7"/> |
| 61 |
</criteria> |
| 62 |
</definition> |
| 63 |
|
| 64 |
<definition class="compliance" version="1" id="oval:0:def:8"> |
| 65 |
<metadata><title></title><description></description></metadata> |
| 66 |
<criteria> |
| 67 |
<criterion test_ref="oval:0:tst:8"/> |
| 68 |
</criteria> |
| 69 |
</definition> |
| 70 |
|
| 71 |
</definitions> |
| 72 |
|
| 73 |
<tests> |
| 74 |
|
| 75 |
<systemdunitproperty_test check_existence="only_one_exists" version="1" id="oval:0:tst:1" check="all" comment="true" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 76 |
<object object_ref="oval:0:obj:1"/> |
| 77 |
</systemdunitproperty_test> |
| 78 |
|
| 79 |
|
| 80 |
<systemdunitproperty_test id="oval:0:tst:2" check="at least one" check_existence="all_exist" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" comment="true" version="1"> |
| 81 |
<object object_ref="oval:0:obj:2"/> |
| 82 |
<state state_ref="oval:0:ste:1"/> |
| 83 |
</systemdunitproperty_test> |
| 84 |
|
| 85 |
|
| 86 |
<systemdunitproperty_test id="oval:0:tst:3" check="at least one" check_existence="all_exist" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" comment="true" version="1"> |
| 87 |
<object object_ref="oval:0:obj:3"/> |
| 88 |
<state state_ref="oval:0:ste:1"/> |
| 89 |
</systemdunitproperty_test> |
| 90 |
|
| 91 |
|
| 92 |
<systemdunitproperty_test id="oval:0:tst:4" check="at least one" check_existence="all_exist" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" comment="true" version="1"> |
| 93 |
<object object_ref="oval:0:obj:4"/> |
| 94 |
<state state_ref="oval:0:ste:3"/> |
| 95 |
</systemdunitproperty_test> |
| 96 |
|
| 97 |
|
| 98 |
<systemdunitproperty_test id="oval:0:tst:5" check="all" check_existence="none_exist" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" comment="true" version="1"> |
| 99 |
<object object_ref="oval:0:obj:5"/> |
| 100 |
</systemdunitproperty_test> |
| 101 |
|
| 102 |
|
| 103 |
<systemdunitproperty_test id="oval:0:tst:6" check="all" check_existence="at_least_one_exists" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" comment="false" version="1"> |
| 104 |
<object object_ref="oval:0:obj:5"/> |
| 105 |
<state state_ref="oval:0:ste:4"/> |
| 106 |
</systemdunitproperty_test> |
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
<systemdunitproperty_test id="oval:0:tst:7" check="all" check_existence="at_least_one_exists" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" comment="false" version="1"> |
| 111 |
<object object_ref="oval:0:obj:6"/> |
| 112 |
<state state_ref="oval:0:ste:5"/> |
| 113 |
</systemdunitproperty_test> |
| 114 |
|
| 115 |
|
| 116 |
<variable_test id="oval:0:tst:8" check="all" check_existence="at_least_one_exists" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" comment="true" version="1"> |
| 117 |
<object object_ref="oval:0:obj:7"/> |
| 118 |
<state state_ref="oval:0:ste:6"/> |
| 119 |
</variable_test> |
| 120 |
|
| 121 |
</tests> |
| 122 |
|
| 123 |
<objects> |
| 124 |
|
| 125 |
<systemdunitproperty_object version="1" id="oval:0:obj:1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 126 |
<unit>-.mount</unit> |
| 127 |
<property>LoadState</property> |
| 128 |
</systemdunitproperty_object> |
| 129 |
|
| 130 |
<systemdunitproperty_object id="oval:0:obj:2" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 131 |
<unit operation="pattern match">.*\.service</unit> |
| 132 |
<property>LoadState</property> |
| 133 |
</systemdunitproperty_object> |
| 134 |
|
| 135 |
<systemdunitproperty_object id="oval:0:obj:3" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 136 |
<unit operation="pattern match">.*\.service</unit> |
| 137 |
<property>LoadState</property> |
| 138 |
<filter action="exclude" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5">oval:0:ste:2</filter> |
| 139 |
</systemdunitproperty_object> |
| 140 |
|
| 141 |
<systemdunitproperty_object id="oval:0:obj:4" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 142 |
<unit operation="pattern match">.*\.service</unit> |
| 143 |
<property>Conflicts</property> |
| 144 |
</systemdunitproperty_object> |
| 145 |
|
| 146 |
<systemdunitproperty_object id="oval:0:obj:5" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 147 |
<unit>systemd-journald.service</unit> |
| 148 |
<property>OscapTestingProperty</property> |
| 149 |
</systemdunitproperty_object> |
| 150 |
|
| 151 |
<systemdunitproperty_object id="oval:0:obj:6" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 152 |
<unit>abcdefghijklmnopqrstuvwxyz.target</unit> |
| 153 |
<property>UnitFileState</property> |
| 154 |
</systemdunitproperty_object> |
| 155 |
|
| 156 |
<variable_object id="oval:0:obj:7" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 157 |
<var_ref>oval:0:var:1</var_ref> |
| 158 |
</variable_object> |
| 159 |
|
| 160 |
<systemdunitproperty_object id="oval:0:obj:8" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 161 |
<unit>sockets.target</unit> |
| 162 |
<property>Wants</property> |
| 163 |
</systemdunitproperty_object> |
| 164 |
|
| 165 |
</objects> |
| 166 |
|
| 167 |
<states> |
| 168 |
|
| 169 |
<systemdunitproperty_state id="oval:0:ste:1" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 170 |
<value operation="pattern match">(loaded|not-found)</value> |
| 171 |
</systemdunitproperty_state> |
| 172 |
|
| 173 |
<systemdunitproperty_state id="oval:0:ste:2" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 174 |
<value operation="equals">not-found</value> |
| 175 |
</systemdunitproperty_state> |
| 176 |
|
| 177 |
<systemdunitproperty_state id="oval:0:ste:3" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 178 |
<value operation="pattern match">(?i)shutdown.target(?-i)</value> |
| 179 |
</systemdunitproperty_state> |
| 180 |
|
| 181 |
<systemdunitproperty_state id="oval:0:ste:4" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 182 |
<value operation="pattern match">^$</value> |
| 183 |
</systemdunitproperty_state> |
| 184 |
|
| 185 |
<systemdunitproperty_state id="oval:0:ste:5" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 186 |
<value operation="equals">(?i)enabled(?-i)</value> |
| 187 |
</systemdunitproperty_state> |
| 188 |
|
| 189 |
<variable_state id="oval:0:ste:6" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 190 |
<value operation="greater than or equal" datatype="int">2</value> |
| 191 |
</variable_state> |
| 192 |
|
| 193 |
</states> |
| 194 |
|
| 195 |
<variables> |
| 196 |
|
| 197 |
<local_variable id="oval:0:var:1" datatype="int" comment="count of items in the value of Wants property of the sockets.target unit" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 198 |
<count> |
| 199 |
<object_component object_ref="oval:0:obj:8" item_field="value"/> |
| 200 |
</count> |
| 201 |
</local_variable> |
| 202 |
|
| 203 |
</variables> |
| 204 |
|
| 205 |
</oval_definitions> |