blob: 4fe52b91154290f6cc31fc6d640ee928bf1635c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
|
<?xml version="1.0" encoding="UTF-8"?>
<oval_definitions xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5"
xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5"
xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"
xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"
xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"
xsi:schemaLocation="
http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd
http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd
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://standards.iso.org/iso/19770/-2/2009/schema.xsd schema.xsd">
<generator>
<oval:product_name>OVAL Gentoo Linux</oval:product_name>
<oval:product_version>20130917.1</oval:product_version>
<oval:schema_version>5.10</oval:schema_version>
<oval:timestamp>2013-09-17T19:42:00</oval:timestamp>
</generator>
<definitions>
<definition id="oval:org.gentoo.dev.swift:def:1" version="1" class="inventory">
<metadata>
<title>Gentoo Linux is installed</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<description>
This definition tests whether Gentoo Linux is installed.
</description>
</metadata>
<criteria>
<criterion test_ref="oval:org.gentoo.dev.swift:tst:1" comment="The /etc/gentoo-release file exists" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:2" version="1" class="compliance">
<metadata>
<title>The /home location must be a separate file system</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-14559-9"/>
<description>
This definition tests whether the /home location is a separate file
system.
</description>
</metadata>
<criteria operator="AND">
<criterion test_ref="oval:org.gentoo.dev.swift:tst:2" comment="The /home location is on a separate partition" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:3" version="1" class="compliance">
<metadata>
<title>The /home file system is mounted with the nosuid option</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<description>
This definition tests whether the /home partition is mounted with the nosuid
mount option.
</description>
</metadata>
<criteria operator="AND">
<criterion test_ref="oval:org.gentoo.dev.swift:tst:2" comment="The /home location is on a separate partition" />
<criterion test_ref="oval:org.gentoo.dev.swift:tst:3" comment="The /home partition is mounted with nosuid mount option" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:4" version="1" class="compliance">
<metadata>
<title>The /home file system is mounted with the nodev option</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<description>
This definition tests whether the /home partition is mounted with the nodev
mount option.
</description>
</metadata>
<criteria operator="AND">
<criterion test_ref="oval:org.gentoo.dev.swift:tst:2" comment="The /home location is on a separate partition" />
<criterion test_ref="oval:org.gentoo.dev.swift:tst:4" comment="The /home partition is mounted with nodev mount option" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:5" version="1" class="compliance">
<metadata>
<title>The /tmp location must be a separate file system</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-14161-4"/>
<description>
This definition tests whether the /tmp location is a separate file
system.
</description>
</metadata>
<criteria operator="AND">
<criterion test_ref="oval:org.gentoo.dev.swift:tst:5" comment="The /tmp location is on a separate partition" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:6" version="1" class="compliance">
<metadata>
<title>The /var location must be a separate file system</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-14777-7"/>
<description>
This definition tests whether the /var location is a separate file
system.
</description>
</metadata>
<criteria operator="AND">
<criterion test_ref="oval:org.gentoo.dev.swift:tst:6" comment="The /var location is on a separate partition" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:7" version="1" class="compliance">
<metadata>
<title>The /var/log location must be a separate file system</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-14011-1"/>
<description>
This definition tests whether the /var/log location is a separate file
system.
</description>
</metadata>
<criteria operator="AND">
<criterion test_ref="oval:org.gentoo.dev.swift:tst:7" comment="The /var/log location is on a separate partition" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:8" version="1" class="compliance">
<metadata>
<title>The /var/log/audit location must be a separate file system</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-14171-3"/>
<description>
This definition tests whether the /var/log/audit location is a separate file
system.
</description>
</metadata>
<criteria operator="AND">
<criterion test_ref="oval:org.gentoo.dev.swift:tst:8" comment="The /var/log/audit location is on a separate partition" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:9" version="1" class="compliance">
<metadata>
<title>The /var file system is mounted with the nodev option</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-4249-9"/>
<description>
This definition tests whether the /var partition is mounted with the nodev
mount option.
</description>
</metadata>
<criteria operator="AND">
<criterion test_ref="oval:org.gentoo.dev.swift:tst:6" comment="The /var location is on a separate partition" />
<criterion test_ref="oval:org.gentoo.dev.swift:tst:9" comment="The /var partition is mounted with nodev mount option" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:10" version="1" class="compliance">
<metadata>
<title>The /var/log file system is mounted with the nodev option</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-4249-9"/>
<description>
This definition tests whether the /var/log partition is mounted with the nodev
mount option.
</description>
</metadata>
<criteria operator="AND">
<criterion test_ref="oval:org.gentoo.dev.swift:tst:7" comment="The /var/log location is on a separate partition" />
<criterion test_ref="oval:org.gentoo.dev.swift:tst:10" comment="The /var/log partition is mounted with nodev mount option" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:11" version="1" class="compliance">
<metadata>
<title>The /var/log/audit file system is mounted with the nodev option</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-4249-9"/>
<description>
This definition tests whether the /var/log/audit partition is mounted with the nodev
mount option.
</description>
</metadata>
<criteria operator="AND">
<criterion test_ref="oval:org.gentoo.dev.swift:tst:8" comment="The /var/log/audit location is on a separate partition" />
<criterion test_ref="oval:org.gentoo.dev.swift:tst:11" comment="The /var/log/audit partition is mounted with nodev mount option" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:12" version="1" class="compliance">
<metadata>
<title>The /tmp file system is mounted with the nodev option</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-4249-9"/>
<description>
This definition tests whether the /tmp partition is mounted with the nodev
mount option.
</description>
</metadata>
<criteria operator="AND">
<criterion test_ref="oval:org.gentoo.dev.swift:tst:5" comment="The /var/log/audit location is on a separate partition" />
<criterion test_ref="oval:org.gentoo.dev.swift:tst:12" comment="The /var/log/audit partition is mounted with nodev mount option" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:13" version="1" class="compliance">
<metadata>
<title>The /tmp file system is mounted with the nosuid option</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-14940-1"/>
<description>
This definition tests whether the /tmp partition is mounted with the nosuid
mount option.
</description>
</metadata>
<criteria operator="AND">
<criterion test_ref="oval:org.gentoo.dev.swift:tst:5" comment="The /tmp location is on a separate partition" />
<criterion test_ref="oval:org.gentoo.dev.swift:tst:13" comment="The /tmp partition is mounted with nosuid mount option" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:14" version="1" class="compliance">
<metadata>
<title>The /dev/shm file system is mounted with the nosuid option</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-14306-5"/>
<description>
This definition tests whether the /dev/shm partition is mounted with the nosuid
mount option.
</description>
</metadata>
<criteria operator="AND">
<criterion test_ref="oval:org.gentoo.dev.swift:tst:14" comment="The /dev/shm location is a separate file system" />
<criterion test_ref="oval:org.gentoo.dev.swift:tst:15" comment="The /dev/shm file system is mounted with nosuid mount option" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:15" version="1" class="compliance">
<metadata>
<title>The /tmp file system is mounted with the noexec option</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-14927-8"/>
<description>
This definition tests whether the /tmp partition is mounted with the noexec
mount option.
</description>
</metadata>
<criteria operator="AND">
<criterion test_ref="oval:org.gentoo.dev.swift:tst:5" comment="The /tmp location is on a separate partition" />
<criterion test_ref="oval:org.gentoo.dev.swift:tst:16" comment="The /tmp partition is mounted with noexec mount option" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:16" version="1" class="compliance">
<metadata>
<title>The /dev/shm file system is mounted with the noexec option</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-14703-3"/>
<description>
This definition tests whether the /dev/shm partition is mounted with the noexec
mount option.
</description>
</metadata>
<criteria operator="AND">
<criterion test_ref="oval:org.gentoo.dev.swift:tst:14" comment="The /dev/shm location is a separate file system" />
<criterion test_ref="oval:org.gentoo.dev.swift:tst:17" comment="The /dev/shm file system is mounted with nosuid mount option" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:17" version="1" class="compliance">
<metadata>
<title>The /var/tmp location is on a separate file system</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-14584-7"/>
<description>
This definition tests whether the /var/tmp location is on its own file system.
</description>
</metadata>
<criteria operator="AND">
<criterion test_ref="oval:org.gentoo.dev.swift:tst:18" comment="The /var/tmp location is a separate file system" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:18" version="1" class="compliance">
<metadata>
<title>The kernel is build with quota support (CONFIG_QUOTA)</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<description>
This definition tests whether the Linux kernel is build with quota support (CONFIG_QUOTA).
</description>
</metadata>
<criteria>
<criterion test_ref="oval:org.gentoo.dev.swift:tst:19" comment="The Linux kernel is build with CONFIG_QUOTA" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:19" version="1" class="compliance">
<metadata>
<title>No process matching "telnetd" is running</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-3390-2" />
<description>
This definition tests if no telnet daemon processes are running.
</description>
</metadata>
<criteria>
<criterion test_ref="oval:org.gentoo.dev.swift:tst:20" comment="No telnet daemons are running" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:20" version="1" class="compliance">
<metadata>
<title>No process matching "ftpd" is running</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-4273-9" />
<description>
This definition tests if no FTP daemon processes are running.
</description>
</metadata>
<criteria>
<criterion test_ref="oval:org.gentoo.dev.swift:tst:21" comment="No FTP daemons are running" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:21" version="1" class="compliance">
<metadata>
<title>rc.conf's rc_shell should be set to /sbin/sulogin</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-4241-6" />
<description>
This definition tests if rc_shell in /etc/rc.conf is set to /sbin/sulogin, ensuring
that single user boots still require the root password to be provided.
</description>
</metadata>
<criteria>
<criterion test_ref="oval:org.gentoo.dev.swift:tst:22" comment="/etc/rc.conf rc_shell is set to /sbin/sulogin" />
</criteria>
</definition>
<definition id="oval:org.gentoo.dev.swift:def:22" version="1" class="compliance">
<metadata>
<title>Single user definitions in inittab should only refer to '/sbin/rc single' or '/sbin/sulogin'</title>
<affected family="unix">
<platform>Gentoo Linux</platform>
</affected>
<reference source="CCE" ref_url="http://nvd.nist.gov/cce/index.cfm" ref_id="CCE-4241-6" />
<description>
This definition tests if /etc/inittab single user login settings only refers
to '/sbin/rc single' or '/sbin/sulogin'.
</description>
</metadata>
<criteria>
<criterion test_ref="oval:org.gentoo.dev.swift:tst:23" comment="/etc/inittab single user settings refers only to '/sbin/rc single' or '/sbin/sulogin'" />
</criteria>
</definition>
</definitions>
<tests>
<unix-def:file_test id="oval:org.gentoo.dev.swift:tst:1"
version="1" check="all" check_existence="all_exist"
comment="Tests that /etc/gentoo-release exists">
<!-- /etc/gentoo-release file -->
<unix-def:object object_ref="oval:org.gentoo.dev.swift:obj:1" />
</unix-def:file_test>
<lin-def:partition_test id="oval:org.gentoo.dev.swift:tst:2"
version="1" check="all" check_existence="all_exist"
comment="Tests that /home is a separate file system">
<!-- /home partition -->
<lin-def:object object_ref="oval:org.gentoo.dev.swift:obj:2" />
</lin-def:partition_test>
<lin-def:partition_test id="oval:org.gentoo.dev.swift:tst:3"
version="1" check="all" check_existence="all_exist"
comment="Tests that /home is mounted with nosuid option">
<!-- /home partition -->
<lin-def:object object_ref="oval:org.gentoo.dev.swift:obj:2" />
<!-- "nosuid" mount option -->
<lin-def:state state_ref="oval:org.gentoo.dev.swift:ste:1" />
</lin-def:partition_test>
<lin-def:partition_test id="oval:org.gentoo.dev.swift:tst:4"
version="1" check="all" check_existence="all_exist"
comment="Tests that /home is mounted with nodev option">
<!-- /home partition -->
<lin-def:object object_ref="oval:org.gentoo.dev.swift:obj:2" />
<!-- "nodev" mount option -->
<lin-def:state state_ref="oval:org.gentoo.dev.swift:ste:2" />
</lin-def:partition_test>
<lin-def:partition_test id="oval:org.gentoo.dev.swift:tst:5"
version="1" check="all" check_existence="all_exist"
comment="Tests that /tmp is a separate file system">
<!-- /tmp partition -->
<lin-def:object object_ref="oval:org.gentoo.dev.swift:obj:3" />
</lin-def:partition_test>
<lin-def:partition_test id="oval:org.gentoo.dev.swift:tst:6"
version="1" check="all" check_existence="all_exist"
comment="Tests that /var is a separate file system">
<!-- /var partition -->
<lin-def:object object_ref="oval:org.gentoo.dev.swift:obj:4" />
</lin-def:partition_test>
<lin-def:partition_test id="oval:org.gentoo.dev.swift:tst:7"
version="1" check="all" check_existence="all_exist"
comment="Tests that /var/log is a separate file system">
<!-- /var/log partition -->
<lin-def:object object_ref="oval:org.gentoo.dev.swift:obj:5" />
</lin-def:partition_test>
<lin-def:partition_test id="oval:org.gentoo.dev.swift:tst:8"
version="1" check="all" check_existence="all_exist"
comment="Tests that /var/log/audit is a separate file system">
<!-- /var/log/audit partition -->
<lin-def:object object_ref="oval:org.gentoo.dev.swift:obj:6" />
</lin-def:partition_test>
<lin-def:partition_test id="oval:org.gentoo.dev.swift:tst:9"
version="1" check="all" check_existence="all_exist"
comment="Tests that /var is mounted with nodev option">
<!-- /var partition -->
<lin-def:object object_ref="oval:org.gentoo.dev.swift:obj:4" />
<!-- "nodev" mount option -->
<lin-def:state state_ref="oval:org.gentoo.dev.swift:ste:2" />
</lin-def:partition_test>
<lin-def:partition_test id="oval:org.gentoo.dev.swift:tst:10"
version="1" check="all" check_existence="all_exist"
comment="Tests that /var/log is mounted with nodev option">
<!-- /var/log partition -->
<lin-def:object object_ref="oval:org.gentoo.dev.swift:obj:5" />
<!-- "nodev" mount option -->
<lin-def:state state_ref="oval:org.gentoo.dev.swift:ste:2" />
</lin-def:partition_test>
<lin-def:partition_test id="oval:org.gentoo.dev.swift:tst:11"
version="1" check="all" check_existence="all_exist"
comment="Tests that /var/log/audit is mounted with nodev option">
<!-- /var/log/audit partition -->
<lin-def:object object_ref="oval:org.gentoo.dev.swift:obj:6" />
<!-- "nodev" mount option -->
<lin-def:state state_ref="oval:org.gentoo.dev.swift:ste:2" />
</lin-def:partition_test>
<lin-def:partition_test id="oval:org.gentoo.dev.swift:tst:12"
version="1" check="all" check_existence="all_exist"
comment="Tests that /tmp is mounted with nodev option">
<!-- /tmp partition -->
<lin-def:object object_ref="oval:org.gentoo.dev.swift:obj:2" />
<!-- "nodev" mount option -->
<lin-def:state state_ref="oval:org.gentoo.dev.swift:ste:2" />
</lin-def:partition_test>
<lin-def:partition_test id="oval:org.gentoo.dev.swift:tst:13"
version="1" check="all" check_existence="all_exist"
comment="Tests that /tmp is mounted with nosuid option">
<!-- /tmp partition -->
<lin-def:object object_ref="oval:org.gentoo.dev.swift:obj:2" />
<!-- "nosuid" mount option -->
<lin-def:state state_ref="oval:org.gentoo.dev.swift:ste:1" />
</lin-def:partition_test>
<lin-def:partition_test id="oval:org.gentoo.dev.swift:tst:14"
version="1" check="all" check_existence="all_exist"
comment="Tests that /dev/shm is a separate file system">
<!-- /dev/shm file system -->
<lin-def:object object_ref="oval:org.gentoo.dev.swift:obj:7" />
</lin-def:partition_test>
<lin-def:partition_test id="oval:org.gentoo.dev.swift:tst:15"
version="1" check="all" check_existence="all_exist"
comment="Tests that /dev/shm is mounted with nosuid option">
<!-- /dev/shm file system -->
<lin-def:object object_ref="oval:org.gentoo.dev.swift:obj:7" />
<!-- "nosuid" mount option -->
<lin-def:state state_ref="oval:org.gentoo.dev.swift:ste:1" />
</lin-def:partition_test>
<lin-def:partition_test id="oval:org.gentoo.dev.swift:tst:16"
version="1" check="all" check_existence="all_exist"
comment="Tests that /tmp is mounted with noexec option">
<!-- /tmp file system -->
<lin-def:object object_ref="oval:org.gentoo.dev.swift:obj:3" />
<!-- "noexec" mount option -->
<lin-def:state state_ref="oval:org.gentoo.dev.swift:ste:3" />
</lin-def:partition_test>
<lin-def:partition_test id="oval:org.gentoo.dev.swift:tst:17"
version="1" check="all" check_existence="all_exist"
comment="Tests that /dev/shm is mounted with noexec option">
<!-- /dev/shm file system -->
<lin-def:object object_ref="oval:org.gentoo.dev.swift:obj:7" />
<!-- "noexec" mount option -->
<lin-def:state state_ref="oval:org.gentoo.dev.swift:ste:3" />
</lin-def:partition_test>
<lin-def:partition_test id="oval:org.gentoo.dev.swift:tst:18"
version="1" check="all" check_existence="all_exist"
comment="Tests that /var/tmp is on its own file system">
<!-- /var/tmp file system -->
<lin-def:object object_ref="oval:org.gentoo.dev.swift:obj:8" />
</lin-def:partition_test>
<ind-def:textfilecontent54_test id="oval:org.gentoo.dev.swift:tst:19"
version="1" check="at least one" check_existence="at_least_one_exists"
comment="Tests that CONFIG_QUOTA is in the kernel configuration">
<!-- The file containing kernel configuration -->
<ind-def:object object_ref="oval:org.gentoo.dev.swift:obj:9" />
<!-- Match for "^CONFIG_QUOTA=[ym]" -->
<ind-def:state state_ref="oval:org.gentoo.dev.swift:ste:4" />
</ind-def:textfilecontent54_test>
<unix-def:process58_test id="oval:org.gentoo.dev.swift:tst:20"
version="1" check="all" check_existence="none_exist"
comment="Tests that no telnet daemons are running">
<!-- Process matching "telnetd" -->
<unix-def:object object_ref="oval:org.gentoo.dev.swift:obj:10" />
</unix-def:process58_test>
<unix-def:process58_test id="oval:org.gentoo.dev.swift:tst:21"
version="1" check="all" check_existence="none_exist"
comment="Tests that no FTP daemons are running">
<!-- Process matching "ftpd" -->
<unix-def:object object_ref="oval:org.gentoo.dev.swift:obj:11" />
</unix-def:process58_test>
<ind-def:textfilecontent54_test id="oval:org.gentoo.dev.swift:tst:22"
version="1" check="at least one" check_existence="all_exist"
comment="Tests that rc_shell in /etc/rc.conf is set to /sbin/sulogin">
<!-- The variable settings in /etc/rc.conf -->
<ind-def:object object_ref="oval:org.gentoo.dev.swift:obj:12" />
<!-- Match for rc_shell=/sbin/sulogin -->
<ind-def:state state_ref="oval:org.gentoo.dev.swift:ste:5" />
</ind-def:textfilecontent54_test>
<ind-def:textfilecontent54_test id="oval:org.gentoo.dev.swift:tst:23"
version="1" check="all" check_existence="at_least_one_exists"
comment="Tests that single-user boot only triggers '/sbin/rc single' or '/sbin/sulogin'">
<!-- The single-user boot rules in /etc/inittab -->
<ind-def:object object_ref="oval:org.gentoo.dev.swift:obj:13" />
<!-- The '/sbin/rc single' or '/sbin/sulogin' matches -->
<ind-def:state state_ref="oval:org.gentoo.dev.swift:ste:6" />
</ind-def:textfilecontent54_test>
</tests>
<objects>
<unix-def:file_object id="oval:org.gentoo.dev.swift:obj:1"
version="1" comment="The /etc/gentoo-release file">
<unix-def:filepath>/etc/gentoo-release</unix-def:filepath>
</unix-def:file_object>
<lin-def:partition_object id="oval:org.gentoo.dev.swift:obj:2"
version="1" comment="The /home partition">
<lin-def:mount_point>/home</lin-def:mount_point>
</lin-def:partition_object>
<lin-def:partition_object id="oval:org.gentoo.dev.swift:obj:3"
version="1" comment="The /tmp partition">
<lin-def:mount_point>/tmp</lin-def:mount_point>
</lin-def:partition_object>
<lin-def:partition_object id="oval:org.gentoo.dev.swift:obj:4"
version="1" comment="The /var partition">
<lin-def:mount_point>/var</lin-def:mount_point>
</lin-def:partition_object>
<lin-def:partition_object id="oval:org.gentoo.dev.swift:obj:5"
version="1" comment="The /var/log partition">
<lin-def:mount_point>/var/log</lin-def:mount_point>
</lin-def:partition_object>
<lin-def:partition_object id="oval:org.gentoo.dev.swift:obj:6"
version="1" comment="The /var/log/audit partition">
<lin-def:mount_point>/var/log/audit</lin-def:mount_point>
</lin-def:partition_object>
<lin-def:partition_object id="oval:org.gentoo.dev.swift:obj:7"
version="1" comment="The /dev/shm file system">
<lin-def:mount_point>/dev/shm</lin-def:mount_point>
</lin-def:partition_object>
<lin-def:partition_object id="oval:org.gentoo.dev.swift:obj:8"
version="1" comment="The /var/tmp file system">
<lin-def:mount_point>/var/tmp</lin-def:mount_point>
</lin-def:partition_object>
<ind-def:textfilecontent54_object id="oval:org.gentoo.dev.swift:obj:9"
version="1" comment="The file containing kernel configuration">
<ind-def:filepath>/usr/src/linux/.config</ind-def:filepath>
<ind-def:pattern operation="pattern match">^CONFIG_.*</ind-def:pattern>
<ind-def:instance operation="greater than or equal" datatype="int">1</ind-def:instance>
</ind-def:textfilecontent54_object>
<unix-def:process58_object id="oval:org.gentoo.dev.swift:obj:10"
version="1" comment="Process matching telnetd in its command name">
<unix-def:command_line operation="pattern match">.*[Tt][Ee][Ll][Nn][Ee][Tt][Dd].*</unix-def:command_line>
<unix-def:pid datatype="int" operation="greater than">0</unix-def:pid>
</unix-def:process58_object>
<unix-def:process58_object id="oval:org.gentoo.dev.swift:obj:11"
version="1" comment="Process matching ftpd in its command name">
<unix-def:command_line operation="pattern match">.*[Ff][Tt][Pp][Dd].*</unix-def:command_line>
<unix-def:pid datatype="int" operation="greater than">0</unix-def:pid>
</unix-def:process58_object>
<ind-def:textfilecontent54_object id="oval:org.gentoo.dev.swift:obj:12"
version="1" comment="The /etc/rc.conf variable declarations">
<ind-def:filepath>/etc/rc.conf</ind-def:filepath>
<ind-def:pattern operation="pattern match">^[[:space:]]*[\S]+[[:space:]]*=[[:space:]]*[\S]+</ind-def:pattern>
<ind-def:instance operation="greater than or equal" datatype="int">1</ind-def:instance>
</ind-def:textfilecontent54_object>
<ind-def:textfilecontent54_object id="oval:org.gentoo.dev.swift:obj:13"
version="1" comment="The /etc/inittab contents">
<ind-def:filepath>/etc/inittab</ind-def:filepath>
<ind-def:pattern operation="pattern match">^[\S]+:S:[\S]+:.*</ind-def:pattern>
<ind-def:instance operation="greater than or equal" datatype="int">1</ind-def:instance>
</ind-def:textfilecontent54_object>
</objects>
<states>
<lin-def:partition_state id="oval:org.gentoo.dev.swift:ste:1"
version="1" comment="The file system is mounted with the nosuid mount option">
<lin-def:mount_options entity_check="at least one">nosuid</lin-def:mount_options>
</lin-def:partition_state>
<lin-def:partition_state id="oval:org.gentoo.dev.swift:ste:2"
version="1" comment="The file system is mounted with the nodev mount option">
<lin-def:mount_options entity_check="at least one">nodev</lin-def:mount_options>
</lin-def:partition_state>
<lin-def:partition_state id="oval:org.gentoo.dev.swift:ste:3"
version="1" comment="The file system is mounted with the noexec mount option">
<lin-def:mount_options entity_check="at least one">noexec</lin-def:mount_options>
</lin-def:partition_state>
<ind-def:textfilecontent54_state id="oval:org.gentoo.dev.swift:ste:4"
version="1" comment="Matching ^CONFIG_QUOTA=[ym]">
<ind-def:text datatype="string" operation="pattern match" entity_check="all">^CONFIG_QUOTA=[ym]</ind-def:text>
</ind-def:textfilecontent54_state>
<ind-def:textfilecontent54_state id="oval:org.gentoo.dev.swift:ste:5"
version="1" comment="Matching rc_shell=/sbin/sulogin">
<ind-def:text datatype="string" operation="pattern match" entity_check="all">rc_shell[[:space:]]*=[[:space:]]*["]?/sbin/sulogin["]?</ind-def:text>
</ind-def:textfilecontent54_state>
<ind-def:textfilecontent54_state id="oval:org.gentoo.dev.swift:ste:6"
version="1" comment="Single user boot lines may only match '/sbin/rc single' or '/sbin/sulogin'">
<ind-def:text datatype="string" operation="pattern match" entity_check="all">su[[:digit:]]+:S:[\S]+:(/sbin/rc single|/sbin/sulogin)</ind-def:text>
</ind-def:textfilecontent54_state>
</states>
<!--
<variables>
</variables>
-->
</oval_definitions>
|