Skip to main content

Restrict Core Dumps

  1. Edit the /etc/security/limits.conf and /etc/sysctl.conf files, adding the lines below
/etc/security/limits.conf
=========================

* hard core 0

/etc/sysctl.conf
================

fs.suid_dumpable = 0

Active kernel parameter

  1. Active the kernel parameter by running the following command
sysctl -w fs.suid_dumpable=0