This file is indexed.

/usr/share/scap-security-guide/ssg-debian8-ocil.xml is in ssg-debian 0.1.31-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
<ocil xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://scap.nist.gov/schema/ocil/2.0" xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <generator>
    <schema_version>2.0</schema_version>
    <timestamp>2017-08-11T09:18:08Z</timestamp>
  </generator>
  <questionnaires>
    <questionnaire id="ocil:ssg-file_permissions_systemmap_ocil:questionnaire:1">
      <title>Verify that local System.map file (if exists) is readable only by root</title>
      <actions>
        <test_action_ref>ocil:ssg-file_permissions_systemmap_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-file_permissions_etc_shadow_ocil:questionnaire:1">
      <title>Verify Permissions and ownership on shadow File</title>
      <actions>
        <test_action_ref>ocil:ssg-file_permissions_etc_shadow_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-file_permissions_etc_gshadow_ocil:questionnaire:1">
      <title>Verify Permissions and ownership on gshadow File</title>
      <actions>
        <test_action_ref>ocil:ssg-file_permissions_etc_gshadow_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-file_permissions_etc_passwd_ocil:questionnaire:1">
      <title>Verify Permissions and ownership on passwd File</title>
      <actions>
        <test_action_ref>ocil:ssg-file_permissions_etc_passwd_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-file_permissions_etc_group_ocil:questionnaire:1">
      <title>Verify Permissions and ownership on group File</title>
      <actions>
        <test_action_ref>ocil:ssg-file_permissions_etc_group_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-sysctl_fs_suid_dumpable_ocil:questionnaire:1">
      <title>Disable Core Dumps for SUID programs</title>
      <actions>
        <test_action_ref>ocil:ssg-sysctl_fs_suid_dumpable_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-sysctl_kernel_randomize_va_space_ocil:questionnaire:1">
      <title>Enable Randomized Layout of Virtual Address Space</title>
      <actions>
        <test_action_ref>ocil:ssg-sysctl_kernel_randomize_va_space_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-sysctl_kernel_kptr_restrict_ocil:questionnaire:1">
      <title>Restrict exposed kernel pointers addresses access</title>
      <actions>
        <test_action_ref>ocil:ssg-sysctl_kernel_kptr_restrict_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-partition_for_tmp_ocil:questionnaire:1">
      <title>Ensure /tmp Located On Separate Partition</title>
      <actions>
        <test_action_ref>ocil:ssg-partition_for_tmp_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-partition_for_var_ocil:questionnaire:1">
      <title>Ensure /var Located On Separate Partition</title>
      <actions>
        <test_action_ref>ocil:ssg-partition_for_var_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-partition_for_var_log_ocil:questionnaire:1">
      <title>Ensure /var/log Located On Separate Partition</title>
      <actions>
        <test_action_ref>ocil:ssg-partition_for_var_log_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-partition_for_var_log_audit_ocil:questionnaire:1">
      <title>Ensure /var/log/audit Located On Separate Partition</title>
      <actions>
        <test_action_ref>ocil:ssg-partition_for_var_log_audit_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-partition_for_home_ocil:questionnaire:1">
      <title>Ensure /home Located On Separate Partition</title>
      <actions>
        <test_action_ref>ocil:ssg-partition_for_home_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-partition_for_srv_ocil:questionnaire:1">
      <title>Ensure /srv Located On Separate Partition</title>
      <actions>
        <test_action_ref>ocil:ssg-partition_for_srv_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-sysctl_fs_protected_symlinks_ocil:questionnaire:1">
      <title>Disallow creating symlinks to a file you not own</title>
      <actions>
        <test_action_ref>ocil:ssg-sysctl_fs_protected_symlinks_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-sysctl_fs_protected_hardlinks_ocil:questionnaire:1">
      <title>Disallow creating symlinks to a file you not own</title>
      <actions>
        <test_action_ref>ocil:ssg-sysctl_fs_protected_hardlinks_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-package_rsyslog_installed_ocil:questionnaire:1">
      <title>Ensure rsyslog is Installed</title>
      <actions>
        <test_action_ref>ocil:ssg-package_rsyslog_installed_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-service_rsyslog_enabled_ocil:questionnaire:1">
      <title>Enable rsyslog Service</title>
      <actions>
        <test_action_ref>ocil:ssg-service_rsyslog_enabled_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-rsyslog_files_ownership_ocil:questionnaire:1">
      <title>Ensure Log Files Are Owned By Appropriate User</title>
      <actions>
        <test_action_ref>ocil:ssg-rsyslog_files_ownership_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-rsyslog_files_groupownership_ocil:questionnaire:1">
      <title>Ensure Log Files Are Owned By Appropriate Group</title>
      <actions>
        <test_action_ref>ocil:ssg-rsyslog_files_groupownership_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-rsyslog_files_permissions_ocil:questionnaire:1">
      <title>Ensure System Log Files Have Correct Permissions</title>
      <actions>
        <test_action_ref>ocil:ssg-rsyslog_files_permissions_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-rsyslog_remote_loghost_ocil:questionnaire:1">
      <title>Ensure Logs Sent To Remote Host</title>
      <actions>
        <test_action_ref>ocil:ssg-rsyslog_remote_loghost_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-ensure_logrotate_activated_ocil:questionnaire:1">
      <title>Ensure Logrotate Runs Periodically</title>
      <actions>
        <test_action_ref>ocil:ssg-ensure_logrotate_activated_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-service_auditd_enabled_ocil:questionnaire:1">
      <title>Enable the auditd service</title>
      <actions>
        <test_action_ref>ocil:ssg-service_auditd_enabled_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-service_ntpd_enabled_ocil:questionnaire:1">
      <title>Enable the ntpd service</title>
      <actions>
        <test_action_ref>ocil:ssg-service_ntpd_enabled_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-sshd_allow_only_protocol2_ocil:questionnaire:1">
      <title>Allow Only SSH Protocol 2</title>
      <actions>
        <test_action_ref>ocil:ssg-sshd_allow_only_protocol2_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-sshd_set_idle_timeout_ocil:questionnaire:1">
      <title>Set SSH Idle Timeout Interval</title>
      <actions>
        <test_action_ref>ocil:ssg-sshd_set_idle_timeout_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-sshd_set_keepalive_ocil:questionnaire:1">
      <title>Set SSH Client Alive Count</title>
      <actions>
        <test_action_ref>ocil:ssg-sshd_set_keepalive_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-sshd_disable_root_login_ocil:questionnaire:1">
      <title>Disable SSH Root Login</title>
      <actions>
        <test_action_ref>ocil:ssg-sshd_disable_root_login_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
    <questionnaire id="ocil:ssg-sshd_disable_empty_passwords_ocil:questionnaire:1">
      <title>Disable SSH Access via Empty Passwords</title>
      <actions>
        <test_action_ref>ocil:ssg-sshd_disable_empty_passwords_action:testaction:1</test_action_ref>
      </actions>
    </questionnaire>
  </questionnaires>
  <test_actions>
    <boolean_question_test_action id="ocil:ssg-file_permissions_systemmap_action:testaction:1" question_ref="ocil:ssg-file_permissions_systemmap_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-file_permissions_etc_shadow_action:testaction:1" question_ref="ocil:ssg-file_permissions_etc_shadow_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-file_permissions_etc_gshadow_action:testaction:1" question_ref="ocil:ssg-file_permissions_etc_gshadow_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-file_permissions_etc_passwd_action:testaction:1" question_ref="ocil:ssg-file_permissions_etc_passwd_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-file_permissions_etc_group_action:testaction:1" question_ref="ocil:ssg-file_permissions_etc_group_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-sysctl_fs_suid_dumpable_action:testaction:1" question_ref="ocil:ssg-sysctl_fs_suid_dumpable_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-sysctl_kernel_randomize_va_space_action:testaction:1" question_ref="ocil:ssg-sysctl_kernel_randomize_va_space_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-sysctl_kernel_kptr_restrict_action:testaction:1" question_ref="ocil:ssg-sysctl_kernel_kptr_restrict_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-partition_for_tmp_action:testaction:1" question_ref="ocil:ssg-partition_for_tmp_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-partition_for_var_action:testaction:1" question_ref="ocil:ssg-partition_for_var_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-partition_for_var_log_action:testaction:1" question_ref="ocil:ssg-partition_for_var_log_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-partition_for_var_log_audit_action:testaction:1" question_ref="ocil:ssg-partition_for_var_log_audit_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-partition_for_home_action:testaction:1" question_ref="ocil:ssg-partition_for_home_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-partition_for_srv_action:testaction:1" question_ref="ocil:ssg-partition_for_srv_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-sysctl_fs_protected_symlinks_action:testaction:1" question_ref="ocil:ssg-sysctl_fs_protected_symlinks_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-sysctl_fs_protected_hardlinks_action:testaction:1" question_ref="ocil:ssg-sysctl_fs_protected_hardlinks_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-package_rsyslog_installed_action:testaction:1" question_ref="ocil:ssg-package_rsyslog_installed_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-service_rsyslog_enabled_action:testaction:1" question_ref="ocil:ssg-service_rsyslog_enabled_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-rsyslog_files_ownership_action:testaction:1" question_ref="ocil:ssg-rsyslog_files_ownership_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-rsyslog_files_groupownership_action:testaction:1" question_ref="ocil:ssg-rsyslog_files_groupownership_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-rsyslog_files_permissions_action:testaction:1" question_ref="ocil:ssg-rsyslog_files_permissions_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-rsyslog_remote_loghost_action:testaction:1" question_ref="ocil:ssg-rsyslog_remote_loghost_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-ensure_logrotate_activated_action:testaction:1" question_ref="ocil:ssg-ensure_logrotate_activated_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-service_auditd_enabled_action:testaction:1" question_ref="ocil:ssg-service_auditd_enabled_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-service_ntpd_enabled_action:testaction:1" question_ref="ocil:ssg-service_ntpd_enabled_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-sshd_allow_only_protocol2_action:testaction:1" question_ref="ocil:ssg-sshd_allow_only_protocol2_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-sshd_set_idle_timeout_action:testaction:1" question_ref="ocil:ssg-sshd_set_idle_timeout_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-sshd_set_keepalive_action:testaction:1" question_ref="ocil:ssg-sshd_set_keepalive_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-sshd_disable_root_login_action:testaction:1" question_ref="ocil:ssg-sshd_disable_root_login_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
    <boolean_question_test_action id="ocil:ssg-sshd_disable_empty_passwords_action:testaction:1" question_ref="ocil:ssg-sshd_disable_empty_passwords_question:question:1">
      <when_true>
        <result>PASS</result>
      </when_true>
      <when_false>
        <result>FAIL</result>
      </when_false>
    </boolean_question_test_action>
  </test_actions>
  <questions>
    <boolean_question id="ocil:ssg-file_permissions_systemmap_question:question:1">
      <question_text>
              
    To check the permissions of /boot/Sysem.map-*, run the command:
    $ ls -l /boot/Sysem.map-*
    If properly configured, the output should indicate the following permissions:
    -rw-------
              
    To check the ownership of /boot/System.map-*, run the command:
    $ ls -lL /boot/System.map-*
    If properly configured, the output should indicate the following owner:
    root
            
			Is it the case that it does not?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-file_permissions_etc_shadow_question:question:1">
      <question_text>
              
    To check the permissions of /etc/shadow, run the command:
    $ ls -l /etc/shadow
    If properly configured, the output should indicate the following permissions:
    -rw-r-----
              
    To check the ownership of /etc/shadow, run the command:
    $ ls -lL /etc/shadow
    If properly configured, the output should indicate the following owner:
    root
              
    To check the group ownership of /etc/shadow, run the command:
    $ ls -lL /etc/shadow
    If properly configured, the output should indicate the following group-owner.
    shadow
            
			Is it the case that it does not?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-file_permissions_etc_gshadow_question:question:1">
      <question_text>
              
    To check the permissions of /etc/gshadow, run the command:
    $ ls -l /etc/gshadow
    If properly configured, the output should indicate the following permissions:
    -rw-r-----
              
    To check the ownership of /etc/gshadow, run the command:
    $ ls -lL /etc/gshadow
    If properly configured, the output should indicate the following owner:
    root
              
    To check the group ownership of /etc/gshadow, run the command:
    $ ls -lL /etc/gshadow
    If properly configured, the output should indicate the following group-owner.
    shadow
            
			Is it the case that it does not?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-file_permissions_etc_passwd_question:question:1">
      <question_text>
              
    To check the permissions of /etc/passwd, run the command:
    $ ls -l /etc/passwd
    If properly configured, the output should indicate the following permissions:
    -rw-r--r--
              
    To check the ownership of /etc/passwd, run the command:
    $ ls -lL /etc/passwd
    If properly configured, the output should indicate the following owner:
    root
              
    To check the group ownership of /etc/passwd, run the command:
    $ ls -lL /etc/passwd
    If properly configured, the output should indicate the following group-owner.
    root
            
			Is it the case that it does not?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-file_permissions_etc_group_question:question:1">
      <question_text>
              
    To check the permissions of /etc/passwd, run the command:
    $ ls -l /etc/passwd
    If properly configured, the output should indicate the following permissions:
    -rw-r--r--
              
    To check the ownership of /etc/passwd, run the command:
    $ ls -lL /etc/passwd
    If properly configured, the output should indicate the following owner:
    root
              
    To check the group ownership of /etc/passwd, run the command:
    $ ls -lL /etc/passwd
    If properly configured, the output should indicate the following group-owner.
    root
            
			Is it the case that it does not?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-sysctl_fs_suid_dumpable_question:question:1">
      <question_text>
              
    The status of the fs.suid_dumpable kernel parameter can be queried
    by running the following command:
    preserve$ sysctl fs.suid_dumpable
    The output of the command should indicate a value of 0.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    /etc/sysctl.conf.
    
            
			Is it the case that the correct value is not returned?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-sysctl_kernel_randomize_va_space_question:question:1">
      <question_text>
              
    The status of the kernel.randomize_va_space kernel parameter can be queried
    by running the following command:
    preserve$ sysctl kernel.randomize_va_space
    The output of the command should indicate a value of 2.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    /etc/sysctl.conf.
    
            
			Is it the case that the correct value is not returned?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-sysctl_kernel_kptr_restrict_question:question:1">
      <question_text>
              
    The status of the kernel.kptr_restrict kernel parameter can be queried
    by running the following command:
    preserve$ sysctl kernel.kptr_restrict
    The output of the command should indicate a value of 1.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    /etc/sysctl.conf.
    
            
			Is it the case that the correct value is not returned?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-partition_for_tmp_question:question:1">
      <question_text>
            
    Run the following command to determine if /tmp 
    is on its own partition or logical volume:

  $ mount | grep "on /tmp "
  If /tmp  has its own partition or volume group, a line
  will be returned.
  
          
			Is it the case that no line is returned?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-partition_for_var_question:question:1">
      <question_text>
            
    Run the following command to determine if /var 
    is on its own partition or logical volume:

  $ mount | grep "on /var "
  If /var  has its own partition or volume group, a line
  will be returned.
  
          
			Is it the case that no line is returned?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-partition_for_var_log_question:question:1">
      <question_text>
            
    Run the following command to determine if /var/log 
    is on its own partition or logical volume:

  $ mount | grep "on /var/log "
  If /var/log  has its own partition or volume group, a line
  will be returned.
  
          
			Is it the case that no line is returned?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-partition_for_var_log_audit_question:question:1">
      <question_text>
            
    Run the following command to determine if /var/log/audit 
    is on its own partition or logical volume:

  $ mount | grep "on /var/log/audit "
  If /var/log/audit  has its own partition or volume group, a line
  will be returned.
  
          
			Is it the case that no line is returned?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-partition_for_home_question:question:1">
      <question_text>
            
    Run the following command to determine if /home 
    is on its own partition or logical volume:

  $ mount | grep "on /home "
  If /home  has its own partition or volume group, a line
  will be returned.
  
          
			Is it the case that no line is returned?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-partition_for_srv_question:question:1">
      <question_text>
            
    Run the following command to determine if /home 
    is on its own partition or logical volume:

  $ mount | grep "on /home "
  If /home  has its own partition or volume group, a line
  will be returned.
  
          
			Is it the case that no line is returned?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-sysctl_fs_protected_symlinks_question:question:1">
      <question_text>
            
    The status of the fs.protected_symlinks kernel parameter can be queried
    by running the following command:
    preserve$ sysctl fs.protected_symlinks
    The output of the command should indicate a value of 1.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    /etc/sysctl.conf.
    
          
			Is it the case that the correct value is not returned?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-sysctl_fs_protected_hardlinks_question:question:1">
      <question_text>
            
    The status of the fs.protected_hardlinks kernel parameter can be queried
    by running the following command:
    preserve$ sysctl fs.protected_hardlinks
    The output of the command should indicate a value of 1.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    /etc/sysctl.conf.
    
          
			Is it the case that the correct value is not returned?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-package_rsyslog_installed_question:question:1">
      <question_text>
          
    Run the following command to determine if the rsyslog package is installed:
    $ rpm -q rsyslog
        
			Is it the case that the package is not installed?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-service_rsyslog_enabled_question:question:1">
      <question_text>
          
        Run the following command to determine the current status of the
rsyslog service:
        $ sudo service rsyslog status
        If the service is enabled, it should return the following: rsyslog is running...
        
			Is it the case that ?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-rsyslog_files_ownership_question:question:1">
      <question_text>
The owner of all log files written by rsyslog should be root.
These log files are determined by the second part of each Rule line in
/etc/rsyslog.conf and typically all appear in /var/log.
To see the owner of a given log file, run the following command:
$ ls -l LOGFILE

			Is it the case that the owner is not root?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-rsyslog_files_groupownership_question:question:1">
      <question_text>
The group-owner of all log files written by rsyslog should be adm.
These log files are determined by the second part of each Rule line in
/etc/rsyslog.conf and typically all appear in /var/log.
To see the group-owner of a given log file, run the following command:
$ ls -l LOGFILE

			Is it the case that the group-owner is not adm?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-rsyslog_files_permissions_question:question:1">
      <question_text>
The file permissions for all log files written by rsyslog 
should be set to 640, or more restrictive.
These log files are determined by the second part of each Rule line in
/etc/rsyslog.conf and typically all appear in /var/log.
To see the permissions of a given log file, run the following command:
$ ls -l LOGFILE
The permissions should be 640, or more restrictive.

			Is it the case that the permissions are not correct?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-rsyslog_remote_loghost_question:question:1">
      <question_text>
To ensure logs are sent to a remote host, examine the file
/etc/rsyslog.conf.
If using UDP, a line similar to the following should be present:
 *.* @loghost.example.com
If using TCP, a line similar to the following should be present:
 *.* @@loghost.example.com
If using RELP, a line similar to the following should be present:
 *.* :omrelp:loghost.example.com

			Is it the case that none of these are present?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-ensure_logrotate_activated_question:question:1">
      <question_text>
To determine the status and frequency of logrotate, run the following command:
$ sudo grep logrotate /var/log/cron*
If logrotate is configured properly, output should include references to 
/etc/cron.daily.

			Is it the case that logrotate is not configured to run daily?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-service_auditd_enabled_question:question:1">
      <question_text>
          
        Run the following command to determine the current status of the
auditd service:
        $ sudo service auditd status
        If the service is enabled, it should return the following: auditd is running...
        
			Is it the case that ?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-service_ntpd_enabled_question:question:1">
      <question_text>
          
        Run the following command to determine the current status of the
ntpd service:
        $ sudo service ntpd status
        If the service is enabled, it should return the following: ntpd is running...
        
			Is it the case that ?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-sshd_allow_only_protocol2_question:question:1">
      <question_text>
To check which SSH protocol version is allowed, run the following command:
$ sudo grep Protocol /etc/ssh/sshd_config
If configured properly, output should be Protocol 2

			Is it the case that it is not?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-sshd_set_idle_timeout_question:question:1">
      <question_text>
Run the following command to see what the timeout interval is:
$ sudo grep ClientAliveInterval /etc/ssh/sshd_config
If properly configured, the output should be:
ClientAliveInterval 900

			Is it the case that it is not?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-sshd_set_keepalive_question:question:1">
      <question_text>
To ensure the SSH idle timeout will occur when the ClientAliveCountMax is set, run the following command:
$ sudo grep ClientAliveCountMax /etc/ssh/sshd_config
If properly configured, output should be:
ClientAliveCountMax 0

			Is it the case that it is not?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-sshd_disable_root_login_question:question:1">
      <question_text>
            
    To determine how the SSH daemon's
    PermitRootLogin
    option is set, run the following command:
    preserve$ sudo grep -i PermitRootLogin /etc/ssh/sshd_config
      If a line indicating no is returned, then the required value is set.
    
          
			Is it the case that the required value is not set?
			</question_text>
    </boolean_question>
    <boolean_question id="ocil:ssg-sshd_disable_empty_passwords_question:question:1">
      <question_text>
            
    To determine how the SSH daemon's
    PermitEmptyPasswords
    option is set, run the following command:
    preserve$ sudo grep -i PermitEmptyPasswords /etc/ssh/sshd_config
      If no line, a commented line, or a line indicating the value
      no is returned, then the required value is set.
    
          
			Is it the case that the required value is not set?
			</question_text>
    </boolean_question>
  </questions>
</ocil>