2012-01-14 00:37:35 +01:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-12 00:20:58 +02:00
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
2012-01-14 00:37:35 +01:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
2020-04-03 22:05:25 +02:00
|
|
|
# See sysctl.d(5) for the description of the files in this directory.
|
2012-01-14 00:37:35 +01:00
|
|
|
|
2020-04-03 22:05:25 +02:00
|
|
|
# Pipe the core file to systemd-coredump. The systemd-coredump process spawned
|
|
|
|
# by the kernel will start a second copy of itself as the
|
|
|
|
# systemd-coredump@.service, which will do the actual processing and storing of
|
|
|
|
# the core dump.
|
|
|
|
#
|
|
|
|
# See systemd-coredump(8) and core(5).
|
2019-06-21 13:12:41 +02:00
|
|
|
kernel.core_pattern=|@rootlibexecdir@/systemd-coredump %P %u %g %s %t %c %h
|
2020-04-03 22:05:25 +02:00
|
|
|
|
2020-10-12 16:31:42 +02:00
|
|
|
# Allow that 16 coredumps are dispatched in parallel by the kernel. We want to
|
|
|
|
# be able to collect process metadata from /proc/%P/ while processing
|
|
|
|
# coredumps, and thus need to make sure the crashed processes are not reaped
|
|
|
|
# until we finished collecting what we need. The kernel default for this sysctl
|
|
|
|
# is "0" which means the kernel doesn't wait for userspace processes to finish
|
|
|
|
# processing before reaping the crashed processes — by setting this higher the
|
|
|
|
# kernel will delay reaping until we are done, but only for the specified
|
|
|
|
# number of crashes in parallel. The value of 16 is chosen to match
|
|
|
|
# systemd-coredump.socket's MaxConnections= value.
|
|
|
|
kernel.core_pipe_limit=16
|
|
|
|
|
2020-04-03 22:05:25 +02:00
|
|
|
# Also dump processes executing a set-user-ID/set-group-ID program that is
|
|
|
|
# owned by a user/group other than the real user/group ID of the process, or
|
|
|
|
# a program that has file capabilities. ("2" is called "suidsafe" in core(5)).
|
|
|
|
#
|
|
|
|
# systemd-coredump will store the core file owned by the effective uid and gid
|
|
|
|
# of the running process (and not the filesystem-user-ID which the kernel uses
|
|
|
|
# when saving a core dump).
|
|
|
|
#
|
|
|
|
# See proc(5), setuid(2), capabilities(7).
|
|
|
|
fs.suid_dumpable=2
|