SV-281319r1184633_rule
V-281319
SRG-OS-000095-GPOS-00049
RHEL-10-701170
CAT II
10
Configure RHEL 10 to disable core dumps for all users.
Create or edit the setting in a drop-in configuration file:
$ sudo vi /etc/security/limits.d/core_dumps.conf
Add the following line:
* hard core 0
Remove any entries for users or groups with a value set to anything other than "0".
Note: If kernel dumps are disabled in accordance with RHEL-10-701090, this requirement is not applicable.
Verify RHEL 10 disables core dumps for all users by issuing the following command:
$ sudo grep -r core /etc/security/ | grep -v '#'
/etc/security/limits.d/core_dumps.conf:* hard core 0
This can be set as a global domain (with the * wildcard) but may be set differently for multiple domains.
If the "core" item is missing or the value is anything other than "0", and the need for core dumps is not documented with the information system security officer as an operational requirement for all domains that have the "core" item assigned, this is a finding.
V-281319
False
RHEL-10-701170
Note: If kernel dumps are disabled in accordance with RHEL-10-701090, this requirement is not applicable.
Verify RHEL 10 disables core dumps for all users by issuing the following command:
$ sudo grep -r core /etc/security/ | grep -v '#'
/etc/security/limits.d/core_dumps.conf:* hard core 0
This can be set as a global domain (with the * wildcard) but may be set differently for multiple domains.
If the "core" item is missing or the value is anything other than "0", and the need for core dumps is not documented with the information system security officer as an operational requirement for all domains that have the "core" item assigned, this is a finding.
M
5733