diff --git a/configs/mcp.nix b/configs/mcp.nix index 7c3beee..543dbaa 100644 --- a/configs/mcp.nix +++ b/configs/mcp.nix @@ -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" ]; }; }; }