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; NoNewPrivileges = true;
ProtectSystem = "strict"; ProtectSystem = "full"; # "strict" blocks /run/user; "full" protects /usr and /boot
ProtectHome = true; ProtectHome = true;
PrivateTmp = true; PrivateTmp = true;
PrivateDevices = true; PrivateDevices = true;
ProtectKernelTunables = true; ProtectKernelTunables = true;
ProtectKernelModules = true; ProtectKernelModules = true;
ProtectControlGroups = true;
RestrictSUIDSGID = true; RestrictSUIDSGID = true;
RestrictNamespaces = true;
LockPersonality = true; LockPersonality = true;
MemoryDenyWriteExecute = true;
RestrictRealtime = true; RestrictRealtime = true;
ReadWritePaths = [ ReadWritePaths = [ "/srv" ];
"/srv"
"/run/user/${toString mcpUid}"
];
}; };
}; };
} }