File: rule.yml

package info (click to toggle)
scap-security-guide 0.1.78-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 114,600 kB
  • sloc: xml: 245,305; sh: 84,381; python: 33,093; makefile: 27
file content (39 lines) | stat: -rw-r--r-- 1,102 bytes parent folder | download
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
documentation_complete: true


title: 'Verify permissions on Message of the Day Banner'

description: |-
    {{{ describe_file_permissions(file="/etc/motd", perms="0644") }}}

rationale: |-
    Display of a standardized and approved use notification before granting
    access to the operating system ensures privacy and security notification
    verbiage used is consistent with applicable federal laws, Executive Orders,
    directives, policies, regulations, standards, and guidance.<br />
    Proper permissions will ensure that only root user can modify the banner.

severity: medium

identifiers:
    cce@rhel8: CCE-83338-4
    cce@rhel9: CCE-83554-6
    cce@rhel10: CCE-90411-0
    cce@sle12: CCE-92229-4
    cce@sle15: CCE-91351-7
    cce@slmicro5: CCE-94052-8

references:
    cis@sle12: 1.8.1.4
    cis@sle15: 1.8.1.4

ocil_clause: '{{{ ocil_clause_file_permissions(file="/etc/motd", perms="-rw-r--r--") }}}'

ocil: |-
    {{{ ocil_file_permissions(file="/etc/motd", perms="-rw-r--r--") }}}

template:
    name: file_permissions
    vars:
        filepath: /etc/motd
        filemode: '0644'