PortGate

Blueprints · Server Hardening

Beginner 10 min · Linux

Disable core dumps

Stages a systemd default so application crashes do not write memory to disk.

Baked-in protections

Step 1 · conf

coredump config

/root/portgate-blueprints/coredump.conf

Copy the files into /etc when you are ready, then daemon-reload.

[Coredump]
Storage=none
ProcessSizeMax=0

Step 2 · bash

Read-only check

/root/portgate-blueprints/core-check.sh

Prints status. It does not change the service.

#!/bin/sh
set -eu
ulimit -c
systemctl show -p DefaultLimitCORE || true