diff --git a/nixos/modules/services/web-apps/gerrit.nix b/nixos/modules/services/web-apps/gerrit.nix index c1af294c7cd8..92464bb49a75 100644 --- a/nixos/modules/services/web-apps/gerrit.nix +++ b/nixos/modules/services/web-apps/gerrit.nix @@ -232,10 +232,12 @@ in AmbientCapabilities = ""; CapabilityBoundingSet = ""; LockPersonality = true; + MountAPIVFS = true; NoNewPrivileges = true; PrivateDevices = true; PrivateMounts = true; PrivateTmp = true; + PrivateUsers = true; ProtectClock = true; ProtectControlGroups = "strict"; ProtectHome = true; @@ -243,7 +245,7 @@ in ProtectKernelLogs = true; ProtectKernelModules = true; ProtectKernelTunables = true; - ProtectProc = "noaccess"; + ProtectProc = "invisible"; ProtectSystem = "full"; RestrictAddressFamilies = [ "AF_UNIX"