File: rule.yml

package info (click to toggle)
scap-security-guide 0.1.76-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 110,644 kB
  • sloc: xml: 241,883; sh: 73,777; python: 32,527; makefile: 27
file content (31 lines) | stat: -rw-r--r-- 860 bytes parent folder | download | duplicates (2)
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
documentation_complete: true

title: 'Enable Kernel Parameter to Enforce DAC on FIFOs'

description: '{{{ describe_sysctl_option_value(sysctl="fs.protected_fifos", value="2") }}}'

rationale: |-
    This parameter is available since Linux Kernel 4.19 and allows to prohibit opening
    FIFOs that are not owned by the user in world and group writeable sticky directories.
    It avoids unintentional writes to an attacker-controlled FIFO where a program expects
    to create the regular file.

severity: medium

identifiers:
    cce@rhel9: CCE-85884-5
    cce@rhel10: CCE-87125-1

references:
    nist: CM-6(a),AC-6(1)

{{{ complete_ocil_entry_sysctl_option_value(sysctl="fs.protected_fifos", value="2") }}}

template:
    name: sysctl
    vars:
        sysctlvar: fs.protected_fifos
        sysctlval: '2'
        datatype: int

platform: system_with_kernel