Skip to main content

disable_core_dumps

Function disable_core_dumps 

Source
pub fn disable_core_dumps()
Expand description

Disable core dumps for this process.

Sets RLIMIT_CORE to 0 on Unix. A core file written after a crash while murk holds decrypted secret material is the worst possible leak — disabling it up front removes the failure mode regardless of system defaults, which vary across Linux distros, macOS, and BSDs.

Best-effort: a failed syscall is swallowed rather than blocking the command. Idempotent — a second call on a process that’s already at zero is a no-op. On non-Unix targets this is a no-op.