Rule ID
SV-46152r1_rule
Version
V1R12
CCIs
Process core dumps contain the memory in use by the process when it crashed. Any data the process was handling may be contained in the core file, and it must be protected accordingly. If the centralized process core dump data directory is not owned by root, the core dumps contained in the directory may be subject to unauthorized access.
Procedure: Check the defined directory for process core dumps. # cat /proc/sys/kernel/core_pattern|xargs -n1 -IPATTERN dirname PATTERN Check the existence and ownership of the directory # ls -lLd <core file directory> If the directory does not exist or is not owned by root, this is a finding.
If the core file directory does not exist it must be created. # mkdir -p <core file directory> If necessary, change the owner of the core file directory. # chown root <core file directory>