Every few shutdowns a core dump file is created on /
. How can I prevent creating core dumps completely?
gdb --core=/core
output:
Core was generated by /usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -noliste'.
Program terminated with signal SIGSEGV, Segmentation fault.
I added these parameters to my configuration files:
to /etc/security/limits.conf
:
* hard core 0
root hard core 0
to /etc/sysctl.d/60-own.conf
:
fs.suid_dumpable=0`
to /etc/systemd/system.conf
:
DumpCore=no
Core dump files still exist (in 16.04.1).
Setting
fs.suid_dumpable = 0
will be overridden by apport everytime apport starts.Similar to how ufw interferes with my efforts to follow hardening instructions apport also interferes here. This is how I found out:
So to prevent core dumps and keep fs.suid_dumpable at 0 you have to disable apport: