fix(deploy/files): drop ProcSubset=pid from web reference unit

Mirrors ckn-bw fix: ProcSubset=pid hides /proc/sys/kernel/random/boot_id,
which journalctl needs at startup; web unit invokes journalctl for
live log streaming.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
mwiegand 2026-05-15 16:14:40 +02:00
parent 15c620f95c
commit 6cf4517a88
No known key found for this signature in database

View file

@ -50,8 +50,12 @@ ProtectHome=true
PrivateTmp=true PrivateTmp=true
# === /proc + kernel === # === /proc + kernel ===
# Note: ProcSubset=pid is intentionally NOT set on the web unit.
# It hides /proc/sys/kernel/random/boot_id which journalctl reads at
# startup, and the web invokes `sudo -n left4me-journalctl` to stream
# live server logs into the UI. The server unit can keep ProcSubset=pid
# because srcds doesn't shell out to journalctl.
ProtectProc=invisible # foreign-uid /proc hidden (defense: D4) ProtectProc=invisible # foreign-uid /proc hidden (defense: D4)
ProcSubset=pid
ProtectKernelTunables=true ProtectKernelTunables=true
ProtectKernelModules=true ProtectKernelModules=true
ProtectKernelLogs=true ProtectKernelLogs=true