documentation_complete: true


title: 'Verify ownership of Message of the Day Banner'

description: |-
    {{{ describe_file_owner(file="/etc/motd", owner="root") }}}

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 ownership will ensure that only root user can modify the banner.

severity: medium

identifiers:
    cce@rhel8: CCE-83738-5
    cce@rhel9: CCE-86698-8
    cce@rhel10: CCE-87043-6
    cce@sle12: CCE-92231-0
    cce@sle15: CCE-91353-3
    cce@slmicro5: CCE-94055-1

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

ocil_clause: '{{{ ocil_clause_file_owner(file="/etc/motd", owner="root") }}}'

ocil: |-
    {{{ ocil_file_owner(file="/etc/motd", owner="root") }}}

template:
    name: file_owner
    vars:
        filepath: /etc/motd
        uid_or_name: '0'
