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 (53 lines) | stat: -rw-r--r-- 1,781 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
documentation_complete: true


title: 'Add hidepid Option to /proc'

description: |-
    The <tt>hidepid</tt> mount option is applicable to <tt>/proc</tt> and is used to
    control who can access the information in <tt>/proc/[pid]</tt> directories.
    The option can have one of the following values:
    <pre>
    0: Everybody may access all /proc/[pid] directories.
    1: Users may not access files and subdirectories inside any /proc/[pid] directories
       but their own. The /proc/[pid] directories themselves remain visible.
    2: Same as for mode 1, but in addition the /proc/[pid] directories belonging to other
       users become invisible.
    </pre>
    For example, if you choose the value 2:
    {{{ describe_mount(option="hidepid=2", part="/proc") }}}

rationale: |-
    Users should not be able to see and access directories within /proc, which are not
    related to their own processes in a system. Otherwise, sensitive information from
    other users could be seem.

warnings:
    - functionality: |-
        Hiding the <tt>pid</tt> of processes may lead to problems with <tt>PolicyKit</tt> and <tt>D-Bus</tt>,
        it may also convey a false sense of security.
        {{% if 'rhel' in product %}}
        Proceed to {{{ weblink(link="https://access.redhat.com/solutions/6704531") }}} for more details.
        {{% endif %}}

{{{ complete_ocil_entry_mount_option("/proc", "hidepid=value") }}}

severity: low

identifiers:
    cce@rhel8: CCE-85882-9
    cce@rhel9: CCE-85883-7



template:
    name: mount_option
    vars:
        mountpoint: /proc
        mountoption: hidepid
        mountoption_arg_var: var_mount_option_proc_hidepid
        mount_has_to_exist: false
        filesystem: proc
        type: proc
    backends:
        anaconda: 'off'