| 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.4</oval:schema_version> |
| 11 | <oval:timestamp>2008-03-31T00:00:00-00:00</oval:timestamp> |
| 12 | </generator> |
| 13 | |
| 14 | <definitions> |
| 15 | |
| 16 | <definition class="compliance" version="1" id="oval:1:def:1" > <!-- comment="false" --> |
| 17 | <metadata> |
| 18 | <title></title> |
| 19 | <description></description> |
| 20 | </metadata> |
| 21 | <criteria> |
| 22 | <criteria operator="AND"> |
| 23 | <criterion test_ref="oval:1:tst:1"/> |
| 24 | <criterion test_ref="oval:1:tst:2"/> |
| 25 | <criterion test_ref="oval:1:tst:3"/> |
| 26 | <criterion test_ref="oval:1:tst:4"/> |
| 27 | <criterion test_ref="oval:1:tst:5"/> |
| 28 | <criterion test_ref="oval:1:tst:6"/> |
| 29 | <criterion test_ref="oval:1:tst:7"/> |
| 30 | <criterion test_ref="oval:1:tst:8"/> |
| 31 | <criterion test_ref="oval:1:tst:9"/> |
| 32 | <criterion test_ref="oval:1:tst:10"/> |
| 33 | <criterion test_ref="oval:1:tst:11"/> |
| 34 | <criterion test_ref="oval:1:tst:12"/> |
| 35 | <criterion test_ref="oval:1:tst:13"/> |
| 36 | <criterion test_ref="oval:1:tst:14"/> |
| 37 | <criterion test_ref="oval:1:tst:15"/> |
| 38 | <criterion test_ref="oval:1:tst:16"/> |
| 39 | <criterion test_ref="oval:1:tst:17"/> |
| 40 | <criterion test_ref="oval:1:tst:18"/> |
| 41 | <criterion test_ref="oval:1:tst:19"/> |
| 42 | <criterion test_ref="oval:1:tst:20"/> |
| 43 | <criterion test_ref="oval:1:tst:21"/> |
| 44 | <criterion test_ref="oval:1:tst:22"/> |
| 45 | <criterion test_ref="oval:1:tst:23"/> |
| 46 | <criterion test_ref="oval:1:tst:24"/> |
| 47 | <criterion test_ref="oval:1:tst:25"/> |
| 48 | <criterion test_ref="oval:1:tst:25"/> |
| 49 | <criterion test_ref="oval:1:tst:26"/> |
| 50 | <criterion test_ref="oval:1:tst:27"/> |
| 51 | <criterion test_ref="oval:1:tst:28"/> |
| 52 | <criterion test_ref="oval:1:tst:29"/> |
| 53 | <criterion test_ref="oval:1:tst:30"/> |
| 54 | <criterion test_ref="oval:1:tst:31"/> |
| 55 | <criterion test_ref="oval:1:tst:32"/> |
| 56 | <criterion test_ref="oval:1:tst:33"/> |
| 57 | <criterion test_ref="oval:1:tst:34"/> |
| 58 | <criterion test_ref="oval:1:tst:35"/> |
| 59 | <criterion test_ref="oval:1:tst:36"/> |
| 60 | <criterion test_ref="oval:1:tst:37"/> |
| 61 | <criterion test_ref="oval:1:tst:38"/> |
| 62 | <criterion test_ref="oval:1:tst:39"/> |
| 63 | <criterion test_ref="oval:1:tst:40"/> |
| 64 | </criteria> |
| 65 | </criteria> |
| 66 | </definition> |
| 67 | |
| 68 | <definition class="compliance" version="1" id="oval:1:def:2" > <!-- comment="false" --> |
| 69 | <metadata> |
| 70 | <title></title> |
| 71 | <description></description> |
| 72 | </metadata> |
| 73 | <criteria> |
| 74 | <criteria operator="AND"> |
| 75 | <criterion test_ref="oval:1:tst:1"/> |
| 76 | <criterion test_ref="oval:1:tst:2"/> |
| 77 | </criteria> |
| 78 | </criteria> |
| 79 | </definition> |
| 80 | |
| 81 | <definition class="compliance" version="1" id="oval:1:def:3" > <!-- comment="true" --> |
| 82 | <metadata> |
| 83 | <title></title> |
| 84 | <description></description> |
| 85 | </metadata> |
| 86 | <criteria> |
| 87 | <criteria operator="AND"> |
| 88 | <criterion test_ref="oval:1:tst:1"/> |
| 89 | <criterion test_ref="oval:1:tst:1"/> |
| 90 | </criteria> |
| 91 | </criteria> |
| 92 | </definition> |
| 93 | |
| 94 | <definition class="compliance" version="1" id="oval:1:def:4" > <!-- comment="false" --> |
| 95 | <metadata> |
| 96 | <title></title> |
| 97 | <description></description> |
| 98 | </metadata> |
| 99 | <criteria> |
| 100 | <criteria operator="AND"> |
| 101 | <criterion test_ref="oval:1:tst:2"/> |
| 102 | <criterion test_ref="oval:1:tst:2"/> |
| 103 | </criteria> |
| 104 | </criteria> |
| 105 | </definition> |
| 106 | |
| 107 | <definition class="compliance" version="1" id="oval:1:def:5" > <!-- comment="true" --> |
| 108 | <metadata> |
| 109 | <title></title> |
| 110 | <description></description> |
| 111 | </metadata> |
| 112 | <criteria> |
| 113 | <criteria operator="OR"> |
| 114 | <criterion test_ref="oval:1:tst:1"/> |
| 115 | <criterion test_ref="oval:1:tst:2"/> |
| 116 | </criteria> |
| 117 | </criteria> |
| 118 | </definition> |
| 119 | |
| 120 | <definition class="compliance" version="1" id="oval:1:def:6" > <!-- comment="true" --> |
| 121 | <metadata> |
| 122 | <title></title> |
| 123 | <description></description> |
| 124 | </metadata> |
| 125 | <criteria> |
| 126 | <criteria operator="OR"> |
| 127 | <criterion test_ref="oval:1:tst:1"/> |
| 128 | <criterion test_ref="oval:1:tst:1"/> |
| 129 | </criteria> |
| 130 | </criteria> |
| 131 | </definition> |
| 132 | |
| 133 | <definition class="compliance" version="1" id="oval:1:def:7" > <!-- comment="false" --> |
| 134 | <metadata> |
| 135 | <title></title> |
| 136 | <description></description> |
| 137 | </metadata> |
| 138 | <criteria> |
| 139 | <criteria operator="OR"> |
| 140 | <criterion test_ref="oval:1:tst:2"/> |
| 141 | <criterion test_ref="oval:1:tst:2"/> |
| 142 | </criteria> |
| 143 | </criteria> |
| 144 | </definition> |
| 145 | |
| 146 | <definition class="compliance" version="1" id="oval:1:def:8" > <!-- comment="true" --> |
| 147 | <metadata> |
| 148 | <title></title> |
| 149 | <description></description> |
| 150 | </metadata> |
| 151 | <criteria> |
| 152 | <criteria operator="XOR"> |
| 153 | <criterion test_ref="oval:1:tst:1"/> |
| 154 | <criterion test_ref="oval:1:tst:2"/> |
| 155 | </criteria> |
| 156 | </criteria> |
| 157 | </definition> |
| 158 | |
| 159 | <definition class="compliance" version="1" id="oval:1:def:9" > <!-- comment="false" --> |
| 160 | <metadata> |
| 161 | <title></title> |
| 162 | <description></description> |
| 163 | </metadata> |
| 164 | <criteria> |
| 165 | <criteria operator="XOR"> |
| 166 | <criterion test_ref="oval:1:tst:1"/> |
| 167 | <criterion test_ref="oval:1:tst:1"/> |
| 168 | </criteria> |
| 169 | </criteria> |
| 170 | </definition> |
| 171 | |
| 172 | <definition class="compliance" version="1" id="oval:1:def:10" > <!-- comment="false" --> |
| 173 | <metadata> |
| 174 | <title></title> |
| 175 | <description></description> |
| 176 | </metadata> |
| 177 | <criteria> |
| 178 | <criteria operator="XOR"> |
| 179 | <criterion test_ref="oval:1:tst:2"/> |
| 180 | <criterion test_ref="oval:1:tst:2"/> |
| 181 | </criteria> |
| 182 | </criteria> |
| 183 | </definition> |
| 184 | |
| 185 | <definition class="compliance" version="1" id="oval:1:def:11" > <!-- comment="true" --> |
| 186 | <metadata> |
| 187 | <title></title> |
| 188 | <description></description> |
| 189 | </metadata> |
| 190 | <criteria> |
| 191 | <criteria operator="ONE"> |
| 192 | <criterion test_ref="oval:1:tst:1"/> |
| 193 | <criterion test_ref="oval:1:tst:2"/> |
| 194 | </criteria> |
| 195 | </criteria> |
| 196 | </definition> |
| 197 | |
| 198 | <definition class="compliance" version="1" id="oval:1:def:12" > <!-- comment="false" --> |
| 199 | <metadata> |
| 200 | <title></title> |
| 201 | <description></description> |
| 202 | </metadata> |
| 203 | <criteria> |
| 204 | <criteria operator="ONE"> |
| 205 | <criterion test_ref="oval:1:tst:1"/> |
| 206 | <criterion test_ref="oval:1:tst:1"/> |
| 207 | </criteria> |
| 208 | </criteria> |
| 209 | </definition> |
| 210 | |
| 211 | <definition class="compliance" version="1" id="oval:1:def:13" > <!-- comment="false" --> |
| 212 | <metadata> |
| 213 | <title></title> |
| 214 | <description></description> |
| 215 | </metadata> |
| 216 | <criteria> |
| 217 | <criteria operator="ONE"> |
| 218 | <criterion test_ref="oval:1:tst:2"/> |
| 219 | <criterion test_ref="oval:1:tst:2"/> |
| 220 | </criteria> |
| 221 | </criteria> |
| 222 | </definition> |
| 223 | |
| 224 | </definitions> |
| 225 | |
| 226 | <tests> |
| 227 | |
| 228 | <!-- ##### SINGLE OBJECT TESTS ##### --> |
| 229 | |
| 230 | <!-- ALL_EXIST --> |
| 231 | |
| 232 | <runlevel_test check_existence="all_exist" comment="true" version="1" id="oval:1:tst:1" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 233 | <object object_ref="oval:1:obj:1"/> |
| 234 | <state state_ref="oval:1:ste:2"/> |
| 235 | </runlevel_test> |
| 236 | |
| 237 | <runlevel_test check_existence="all_exist" comment="false" version="1" id="oval:1:tst:2" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 238 | <object object_ref="oval:1:obj:1"/> |
| 239 | <state state_ref="oval:1:ste:1"/> |
| 240 | </runlevel_test> |
| 241 | |
| 242 | <runlevel_test check_existence="all_exist" comment="false" version="1" id="oval:1:tst:3" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 243 | <object object_ref="oval:1:obj:2"/> |
| 244 | <state state_ref="oval:1:ste:2"/> |
| 245 | </runlevel_test> |
| 246 | |
| 247 | <runlevel_test check_existence="all_exist" comment="true" version="1" id="oval:1:tst:4" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 248 | <object object_ref="oval:1:obj:2"/> |
| 249 | <state state_ref="oval:1:ste:1"/> |
| 250 | </runlevel_test> |
| 251 | |
| 252 | <runlevel_test check_existence="all_exist" comment="false" version="1" id="oval:1:tst:5" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 253 | <object object_ref="oval:1:obj:3"/> |
| 254 | <state state_ref="oval:1:ste:2"/> |
| 255 | </runlevel_test> |
| 256 | |
| 257 | <runlevel_test check_existence="all_exist" comment="false" version="1" id="oval:1:tst:6" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 258 | <object object_ref="oval:1:obj:3"/> |
| 259 | <state state_ref="oval:1:ste:1"/> |
| 260 | </runlevel_test> |
| 261 | |
| 262 | <runlevel_test check_existence="all_exist" comment="false" version="1" id="oval:1:tst:7" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 263 | <object object_ref="oval:1:obj:4"/> |
| 264 | <state state_ref="oval:1:ste:2"/> |
| 265 | </runlevel_test> |
| 266 | |
| 267 | <runlevel_test check_existence="all_exist" comment="false" version="1" id="oval:1:tst:8" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 268 | <object object_ref="oval:1:obj:4"/> |
| 269 | <state state_ref="oval:1:ste:1"/> |
| 270 | </runlevel_test> |
| 271 | |
| 272 | <!-- ANY_EXIST --> |
| 273 | |
| 274 | <runlevel_test check_existence="any_exist" comment="true" version="1" id="oval:1:tst:9" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 275 | <object object_ref="oval:1:obj:1"/> |
| 276 | <state state_ref="oval:1:ste:2"/> |
| 277 | </runlevel_test> |
| 278 | |
| 279 | <runlevel_test check_existence="any_exist" comment="false" version="1" id="oval:1:tst:10" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 280 | <object object_ref="oval:1:obj:1"/> |
| 281 | <state state_ref="oval:1:ste:1"/> |
| 282 | </runlevel_test> |
| 283 | |
| 284 | <runlevel_test check_existence="any_exist" comment="false" version="1" id="oval:1:tst:11" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 285 | <object object_ref="oval:1:obj:2"/> |
| 286 | <state state_ref="oval:1:ste:2"/> |
| 287 | </runlevel_test> |
| 288 | |
| 289 | <runlevel_test check_existence="any_exist" comment="true" version="1" id="oval:1:tst:12" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 290 | <object object_ref="oval:1:obj:2"/> |
| 291 | <state state_ref="oval:1:ste:1"/> |
| 292 | </runlevel_test> |
| 293 | |
| 294 | <runlevel_test check_existence="any_exist" comment="true" version="1" id="oval:1:tst:13" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 295 | <object object_ref="oval:1:obj:3"/> |
| 296 | <state state_ref="oval:1:ste:2"/> |
| 297 | </runlevel_test> |
| 298 | |
| 299 | <runlevel_test check_existence="any_exist" comment="true" version="1" id="oval:1:tst:14" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 300 | <object object_ref="oval:1:obj:3"/> |
| 301 | <state state_ref="oval:1:ste:1"/> |
| 302 | </runlevel_test> |
| 303 | |
| 304 | <runlevel_test check_existence="any_exist" comment="true" version="1" id="oval:1:tst:15" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 305 | <object object_ref="oval:1:obj:4"/> |
| 306 | <state state_ref="oval:1:ste:2"/> |
| 307 | </runlevel_test> |
| 308 | |
| 309 | <runlevel_test check_existence="any_exist" comment="true" version="1" id="oval:1:tst:16" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 310 | <object object_ref="oval:1:obj:4"/> |
| 311 | <state state_ref="oval:1:ste:1"/> |
| 312 | </runlevel_test> |
| 313 | |
| 314 | <!-- AT_LEAST_ONE_EXISTS --> |
| 315 | |
| 316 | <runlevel_test check_existence="at_least_one_exists" comment="true" version="1" id="oval:1:tst:17" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 317 | <object object_ref="oval:1:obj:1"/> |
| 318 | <state state_ref="oval:1:ste:2"/> |
| 319 | </runlevel_test> |
| 320 | |
| 321 | <runlevel_test check_existence="at_least_one_exists" comment="false" version="1" id="oval:1:tst:18" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 322 | <object object_ref="oval:1:obj:1"/> |
| 323 | <state state_ref="oval:1:ste:1"/> |
| 324 | </runlevel_test> |
| 325 | |
| 326 | <runlevel_test check_existence="at_least_one_exists" comment="false" version="1" id="oval:1:tst:19" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 327 | <object object_ref="oval:1:obj:2"/> |
| 328 | <state state_ref="oval:1:ste:2"/> |
| 329 | </runlevel_test> |
| 330 | |
| 331 | <runlevel_test check_existence="at_least_one_exists" comment="true" version="1" id="oval:1:tst:20" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 332 | <object object_ref="oval:1:obj:2"/> |
| 333 | <state state_ref="oval:1:ste:1"/> |
| 334 | </runlevel_test> |
| 335 | |
| 336 | <runlevel_test check_existence="at_least_one_exists" comment="false" version="1" id="oval:1:tst:21" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 337 | <object object_ref="oval:1:obj:3"/> |
| 338 | <state state_ref="oval:1:ste:2"/> |
| 339 | </runlevel_test> |
| 340 | |
| 341 | <runlevel_test check_existence="at_least_one_exists" comment="false" version="1" id="oval:1:tst:22" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 342 | <object object_ref="oval:1:obj:3"/> |
| 343 | <state state_ref="oval:1:ste:1"/> |
| 344 | </runlevel_test> |
| 345 | |
| 346 | <runlevel_test check_existence="at_least_one_exists" comment="false" version="1" id="oval:1:tst:23" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 347 | <object object_ref="oval:1:obj:4"/> |
| 348 | <state state_ref="oval:1:ste:2"/> |
| 349 | </runlevel_test> |
| 350 | |
| 351 | <runlevel_test check_existence="at_least_one_exists" comment="false" version="1" id="oval:1:tst:24" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 352 | <object object_ref="oval:1:obj:4"/> |
| 353 | <state state_ref="oval:1:ste:1"/> |
| 354 | </runlevel_test> |
| 355 | |
| 356 | <!-- ONLY_ONE_EXISTS --> |
| 357 | |
| 358 | <runlevel_test check_existence="only_one_exists" comment="true" version="1" id="oval:1:tst:25" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 359 | <object object_ref="oval:1:obj:1"/> |
| 360 | <state state_ref="oval:1:ste:2"/> |
| 361 | </runlevel_test> |
| 362 | |
| 363 | <runlevel_test check_existence="only_one_exists" comment="false" version="1" id="oval:1:tst:26" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 364 | <object object_ref="oval:1:obj:1"/> |
| 365 | <state state_ref="oval:1:ste:1"/> |
| 366 | </runlevel_test> |
| 367 | |
| 368 | <runlevel_test check_existence="only_one_exists" comment="false" version="1" id="oval:1:tst:27" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 369 | <object object_ref="oval:1:obj:2"/> |
| 370 | <state state_ref="oval:1:ste:2"/> |
| 371 | </runlevel_test> |
| 372 | |
| 373 | <runlevel_test check_existence="only_one_exists" comment="true" version="1" id="oval:1:tst:28" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 374 | <object object_ref="oval:1:obj:2"/> |
| 375 | <state state_ref="oval:1:ste:1"/> |
| 376 | </runlevel_test> |
| 377 | |
| 378 | <runlevel_test check_existence="only_one_exists" comment="false" version="1" id="oval:1:tst:29" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 379 | <object object_ref="oval:1:obj:3"/> |
| 380 | <state state_ref="oval:1:ste:2"/> |
| 381 | </runlevel_test> |
| 382 | |
| 383 | <runlevel_test check_existence="only_one_exists" comment="false" version="1" id="oval:1:tst:30" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 384 | <object object_ref="oval:1:obj:3"/> |
| 385 | <state state_ref="oval:1:ste:1"/> |
| 386 | </runlevel_test> |
| 387 | |
| 388 | <runlevel_test check_existence="only_one_exists" comment="false" version="1" id="oval:1:tst:31" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 389 | <object object_ref="oval:1:obj:4"/> |
| 390 | <state state_ref="oval:1:ste:2"/> |
| 391 | </runlevel_test> |
| 392 | |
| 393 | <runlevel_test check_existence="only_one_exists" comment="false" version="1" id="oval:1:tst:32" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 394 | <object object_ref="oval:1:obj:4"/> |
| 395 | <state state_ref="oval:1:ste:1"/> |
| 396 | </runlevel_test> |
| 397 | |
| 398 | <!-- NONE_EXIST --> |
| 399 | |
| 400 | <runlevel_test check_existence="none_exist" comment="false" version="1" id="oval:1:tst:33" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 401 | <object object_ref="oval:1:obj:1"/> |
| 402 | </runlevel_test> |
| 403 | |
| 404 | <runlevel_test check_existence="none_exist" comment="false" version="1" id="oval:1:tst:34" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 405 | <object object_ref="oval:1:obj:1"/> |
| 406 | </runlevel_test> |
| 407 | |
| 408 | <runlevel_test check_existence="none_exist" comment="false" version="1" id="oval:1:tst:35" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 409 | <object object_ref="oval:1:obj:2"/> |
| 410 | </runlevel_test> |
| 411 | |
| 412 | <runlevel_test check_existence="none_exist" comment="false" version="1" id="oval:1:tst:36" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 413 | <object object_ref="oval:1:obj:2"/> |
| 414 | </runlevel_test> |
| 415 | |
| 416 | <runlevel_test check_existence="none_exist" comment="true" version="1" id="oval:1:tst:37" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 417 | <object object_ref="oval:1:obj:3"/> |
| 418 | </runlevel_test> |
| 419 | |
| 420 | <runlevel_test check_existence="none_exist" comment="true" version="1" id="oval:1:tst:38" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 421 | <object object_ref="oval:1:obj:3"/> |
| 422 | </runlevel_test> |
| 423 | |
| 424 | <runlevel_test check_existence="none_exist" comment="true" version="1" id="oval:1:tst:39" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 425 | <object object_ref="oval:1:obj:4"/> |
| 426 | </runlevel_test> |
| 427 | |
| 428 | <runlevel_test check_existence="none_exist" comment="true" version="1" id="oval:1:tst:40" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 429 | <object object_ref="oval:1:obj:4"/> |
| 430 | </runlevel_test> |
| 431 | |
| 432 | </tests> |
| 433 | |
| 434 | <objects> |
| 435 | |
| 436 | <!-- EXISTING OBJECT (VALID SERVICE RUNNING ON A VALID RUNLEVEL --> |
| 437 | <runlevel_object version="1" id="oval:1:obj:1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 438 | <service_name>${1}</service_name> |
| 439 | <runlevel>3</runlevel> |
| 440 | </runlevel_object> |
| 441 | |
| 442 | <!-- NON-EXISTING OBJECT (VALID SERVICE NOT-RUNNING ON A VALID RUNLEVEL --> |
| 443 | <runlevel_object version="1" id="oval:1:obj:2" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 444 | <service_name>${2}</service_name> |
| 445 | <runlevel>3</runlevel> |
| 446 | </runlevel_object> |
| 447 | |
| 448 | <!-- NON-EXISTING OBJECT (VALID SERVICE NOT-RUNNING ON AN IN-VALID RUNLEVEL --> |
| 449 | <runlevel_object version="1" id="oval:1:obj:3" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 450 | <service_name>${2}</service_name> |
| 451 | <runlevel>100000</runlevel> |
| 452 | </runlevel_object> |
| 453 | |
| 454 | <!-- NON-EXISTING OBJECT (INVALID SERVICE NOT-RUNNING ON A VALID RUNLEVEL --> |
| 455 | <runlevel_object version="1" id="oval:1:obj:4" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 456 | <service_name>invalid_service</service_name> |
| 457 | <runlevel>3</runlevel> |
| 458 | </runlevel_object> |
| 459 | |
| 460 | </objects> |
| 461 | |
| 462 | <states> |
| 463 | |
| 464 | <!-- TRUE STATE --> |
| 465 | <runlevel_state version="1" id="oval:1:ste:2" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 466 | <start datatype="boolean">true</start> |
| 467 | </runlevel_state> |
| 468 | |
| 469 | <!-- FALSE STATE --> |
| 470 | <runlevel_state version="1" id="oval:1:ste:1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 471 | <start datatype="boolean">false</start> |
| 472 | </runlevel_state> |
| 473 | |
| 474 | </states> |
| 475 | |
| 476 | </oval_definitions> |
| 477 | EOF |