Setting Limits
- Edit
/etc/security/limits.conf
- Append the following lines
* hard core 0
* soft core 0
Disabling setgid and setuid programs from core dumping
- Edit
/etc/sysctl.d/9999-disable-core-dump.conf
or/etc/sysctl.conf
- Append the following lines
fs.suid.dumpable=0
kernel.core_pattern= |/bin/false