Files
zoneminder/tests
Isaac ConnorandClaude Opus 5.5 6fd53c3db2 fix: make a crashing process non-dumpable when ZM_DUMP_CORES is off refs #5215
A zero RLIMIT_CORE stops the kernel writing a core file, but when
core_pattern pipes to a program such as systemd-coredump or apport the
kernel hands it the dump anyway and leaves the limit to that program.
With ZM_DUMP_CORES off, the die handler now also calls
prctl(PR_SET_DUMPABLE, 0) when it starts reporting, so the kernel skips
the dump unless fs.suid_dumpable is 2, in which case the limit still
applies. It is done only at crash time because it also stops ptrace and
makes root the owner of the process's /proc files. Linux only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 20:58:37 -05:00
..
2024-05-08 14:16:05 -04:00