Process Hardening
Restrict Core Dumps
Restricting Core Dumps
- Add the below to the end of /etc/security/limits.conf
root hard core 0 - Add the below to /etc/sysctl.d/60-own.conf
fs.suid_dumpable=0 - Lastly, add the below to /etc/systemd/system.conf
DumpCore=no
Enable Randomized Virtual Memory Region Placement
Randomized virtual memory region placement
- Add the below line to /etc/sysctl.conf
kernel.randomize_va_space = 2