SV-269178r1156418_rule
V-269178
SRG-OS-000480-GPOS-00227
ALMA-09-011240
CAT II
10
Configure the operating system to disable core dumps for all users.
Add the following line to the top of the /etc/security/limits.conf or in a single ".conf" file defined in /etc/security/limits.d/:
* hard core 0
Remove or comment out any entries for users or groups with a value set to anything other than "0".
Verify AlmaLinux OS 9 disables core dumps for all users by issuing the following command:
Note: If kernel dumps are disabled in accordance with ALMA-09-011680, this requirement is not applicable.
$ grep -r -s core /etc/security/limits.conf /etc/security/limits.d/*.conf
/etc/security/limits.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 commented out, or the value is anything other than "0", and the need for core dumps is not documented with the information system security officer (ISSO) as an operational requirement for all domains that have the "core" item assigned, this is a finding.
If entries exist for users or groups with a value set to anything other than "0", this is a finding.
V-269178
False
ALMA-09-011240
Verify AlmaLinux OS 9 disables core dumps for all users by issuing the following command:
Note: If kernel dumps are disabled in accordance with ALMA-09-011680, this requirement is not applicable.
$ grep -r -s core /etc/security/limits.conf /etc/security/limits.d/*.conf
/etc/security/limits.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 commented out, or the value is anything other than "0", and the need for core dumps is not documented with the information system security officer (ISSO) as an operational requirement for all domains that have the "core" item assigned, this is a finding.
If entries exist for users or groups with a value set to anything other than "0", this is a finding.
M
5664