Relax mcp-agent sandbox for rootless podman compatibility

This commit is contained in:
2026-03-26 14:34:50 -07:00
parent bac757c22e
commit 7f0a978e86

View File

@@ -42,22 +42,16 @@ in
];
NoNewPrivileges = true;
ProtectSystem = "strict";
ProtectSystem = "full"; # "strict" blocks /run/user; "full" protects /usr and /boot
ProtectHome = true;
PrivateTmp = true;
PrivateDevices = true;
ProtectKernelTunables = true;
ProtectKernelModules = true;
ProtectControlGroups = true;
RestrictSUIDSGID = true;
RestrictNamespaces = true;
LockPersonality = true;
MemoryDenyWriteExecute = true;
RestrictRealtime = true;
ReadWritePaths = [
"/srv"
"/run/user/${toString mcpUid}"
];
ReadWritePaths = [ "/srv" ];
};
};
}