* [PATCH] sysctl.conf: include PID in file names of generated core dumps
@ 2020-11-03 15:14 Peter Müller
0 siblings, 0 replies; only message in thread
From: Peter Müller @ 2020-11-03 15:14 UTC (permalink / raw)
To: development
[-- Attachment #1: Type: text/plain, Size: 836 bytes --]
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(a)ipfire.org>
---
config/etc/sysctl.conf | 3 +++
1 file changed, 3 insertions(+)
diff --git a/config/etc/sysctl.conf b/config/etc/sysctl.conf
index be7c07c85..c9b4c092a 100644
--- a/config/etc/sysctl.conf
+++ b/config/etc/sysctl.conf
@@ -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
--
2.26.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-03 15:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-03 15:14 [PATCH] sysctl.conf: include PID in file names of generated core dumps Peter Müller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox