diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-02-27 12:56:27 +0100 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-03-02 08:28:12 +0100 |
| commit | 1f84236b0a7bbf364b4901dc13bcd6561f26214c (patch) | |
| tree | c29caff0f14a14d64a71da39468aa2809d9b9447 /src/irmd/registry.c | |
| parent | 68e0407e8f21a5adff66bbb57c09cb12ca9bb0c5 (diff) | |
| download | ouroboros-be.tar.gz ouroboros-be.zip | |
With DISABLE_TESTS_CORE_DUMPS, setrlimit(RLIMIT_CORE, 0) only prevents
core dump files from being written, but when systemd-coredump is
configured as a piped handler (via core_pattern), the kernel still
invokes it regardless of RLIMIT_CORE, so entries appear in
coredumpctl. Adding prctl(PR_SET_DUMPABLE, 0) marks the process as
non-dumpable, which prevents the kernel from invoking the core dump
handler entirely — including piped ones.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd/registry.c')
0 files changed, 0 insertions, 0 deletions
