Revert "core: set RLIMIT_CORE to unlimited by default"
authorMartin Pitt <martin.pitt@ubuntu.com>
Sat, 27 Feb 2016 11:27:06 +0000 (12:27 +0100)
committerMichael Biebl <biebl@debian.org>
Sat, 2 Jan 2021 16:06:01 +0000 (16:06 +0000)
commite4fe06dec2cdaf20f3329c2b187749b1ccc96403
tree323cd7d757e2a0084de1cbb356f168a7ea35348b
parentba80634d0656c27bf235aed1dc1b99340072a3a8
Revert "core: set RLIMIT_CORE to unlimited by default"

Partially revert commit 15a900327ab as this completely breaks core dumps
without systemd-coredump. It's also contradicting core(8), and it's not
systemd's place to redefine the kernel definitions of core files.

Commit bdfd7b2c now honours the process' RLIMIT_CORE for systemd-coredump. This
isn't what RLIMIT_CORE is supposed to do (it limits the size of the core
*file*, but the kernel deliberately ignores it for piping), so set a static
2^63 core size limit for systemd-coredump to go back to the previous behaviour
(otherwise the change above would break systemd-coredump).

Bug-Debian: https://bugs.debian.org/815020

Gbp-Pq: Topic debian
Gbp-Pq: Name Revert-core-set-RLIMIT_CORE-to-unlimited-by-default.patch
src/core/main.c
sysctl.d/50-coredump.conf.in