From 302eaedd92b5d9c9818ccda54c64088073606738 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Sun, 5 Oct 2025 15:38:50 +0200 Subject: [PATCH] nixos/gerrit: Enable MountAPIVFS hardening in service config This setting is already implied by others, but add it for completeness as well. For documentation see https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#MountAPIVFS= Signed-off-by: Felix Singer --- nixos/modules/services/web-apps/gerrit.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/web-apps/gerrit.nix b/nixos/modules/services/web-apps/gerrit.nix index c1af294c7cd8..fd810d07883f 100644 --- a/nixos/modules/services/web-apps/gerrit.nix +++ b/nixos/modules/services/web-apps/gerrit.nix @@ -232,6 +232,7 @@ in AmbientCapabilities = ""; CapabilityBoundingSet = ""; LockPersonality = true; + MountAPIVFS = true; NoNewPrivileges = true; PrivateDevices = true; PrivateMounts = true;