Disable ProtectHome for mcp-agent (blocks /run/user for podman)

This commit is contained in:
2026-03-26 14:40:54 -07:00
parent 7f0a978e86
commit e7d244c606

View File

@@ -43,7 +43,9 @@ in
NoNewPrivileges = true;
ProtectSystem = "full"; # "strict" blocks /run/user; "full" protects /usr and /boot
ProtectHome = true;
# ProtectHome makes /run/user inaccessible, which breaks rootless podman.
# The agent's home is /srv/mcp (not /home), so this is acceptable.
ProtectHome = false;
PrivateTmp = true;
PrivateDevices = true;
ProtectKernelTunables = true;