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:
parent
15c620f95c
commit
6cf4517a88
1 changed files with 5 additions and 1 deletions
|
|
@ -50,8 +50,12 @@ ProtectHome=true
|
|||
PrivateTmp=true
|
||||
|
||||
# === /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)
|
||||
ProcSubset=pid
|
||||
ProtectKernelTunables=true
|
||||
ProtectKernelModules=true
|
||||
ProtectKernelLogs=true
|
||||
|
|
|
|||
Loading…
Reference in a new issue