SecuritySandboxingLinux

#11 · Systemd Sandboxing: Free Isolation You Already Have

Locking down web handlers and daemons with DynamicUser, PrivateTmp, and Unix socket activation.

Download MP3 (557 KB)

Show Notes & Key Points

You do not always need heavy container orchestrators to isolate a single web service. Henrik Solberg walks through systemd directives that shrink blast radius in minutes.

  • How DynamicUser, ProtectSystem=strict, and StateDirectoryMode=0700 work together.
  • Socket activation over Unix domain sockets so web handlers never expose TCP ports.
  • Auditing service exposure with systemd-analyze security.

Chapters (Click to Jump)

Selected Transcript

Henrik Solberg

Ten lines in a systemd service unit turn a plain Python handler into a tightly fenced process that cannot even see the network stack.

References & Standards

WaveCast
00:00 00:00