]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
sysctl.conf: include PID in file names of generated core dumps
authorPeter Müller <peter.mueller@ipfire.org>
Tue, 3 Nov 2020 15:14:17 +0000 (16:14 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 5 Nov 2020 23:37:53 +0000 (23:37 +0000)
This is recommended by various Linux hardening guides in order to
prevent accidential overwriting of existing core dumps. While it has
probably little to no relevance to the average IPFire user, enabling it
won't harm and fixes a Lynis warning. :-)

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/etc/sysctl.conf

index be7c07c857daafe58bbf67b11b4d026a54346a1a..c9b4c092af55df80e5555a386c54308912b56ecf 100644 (file)
@@ -103,3 +103,6 @@ net.ipv4.tcp_fastopen = 3
 # This protects against various TCP attacks, such as DoS against or injection
 # of arbitrary segments into prematurely closed connections.
 net.ipv4.tcp_rfc1337 = 1
+
+# Include PID in file names of generated core dumps
+kernel.core_uses_pid = 1