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,198 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: 'Ensure rsyslog Default File Permissions Configured'

description: |-
    rsyslog will create logfiles that do not already exist on the system.
    This settings controls what permissions will be applied to these newly
    created files.

rationale: |-
    It is important to ensure that log files have the correct permissions
    to ensure that sensitive data is archived and protected.

severity: medium

identifiers:
    cce@rhel8: CCE-88321-5
    cce@rhel9: CCE-88322-3

ocil_clause: '$FileCreateMode is not set or is more permissive than 0640'

ocil: |-
    Run the following command:
    <pre># grep ^\$FileCreateMode /etc/rsyslog.conf /etc/rsyslog.d/*.conf</pre>
    Verify the output matches:
    <pre>$FileCreateMode 0640</pre>
    Should a site policy dictate less restrictive permissions, ensure to follow
    said policy.

fixtext: |-
    Edit either `/etc/rsyslog.conf` or a dedicated .conf file in `/etc/rsyslog.d/`
    and set $FileCreateMode to 0640 or more restrictive:
    $FileCreateMode 0640
    Restart the service:
    # systemctl restart rsyslog

{{% if product in ['ubuntu2404'] %}}
platform: not service_disabled[rsyslog]
{{% endif %}}