Unverified Commit 9768ddcc authored by Florian's avatar Florian Committed by GitHub
Browse files

nixos/pgadmin: Apply more hardening settings (#449299)

parents 9b2025ae 3d4b08cd
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -208,7 +208,9 @@ in
        User = "pgadmin";
        DynamicUser = true;
        LogsDirectory = "pgadmin";
        LogsDirectoryMode = "750";
        StateDirectory = "pgadmin";
        StateDirectoryMode = "750";
        ExecStart = "${cfg.package}/bin/pgadmin4";
        LoadCredential = [
          "initial_password:${cfg.initialPasswordFile}"
@@ -218,17 +220,20 @@ in
        CapabilityBoundingSet = "";
        LockPersonality = true;
        MemoryDenyWriteExecute = true;
        MountAPIVFS = true;
        NoNewPrivileges = true;
        PrivateDevices = true;
        PrivateMounts = true;
        PrivateTmp = true;
        PrivateUsers = true;
        ProtectClock = true;
        ProtectControlGroups = true;
        ProtectControlGroups = "strict";
        ProtectHome = true;
        ProtectHostname = true;
        ProtectKernelLogs = true;
        ProtectKernelModules = true;
        ProtectKernelTunables = true;
        ProtectProc = "invisible";
        ProtectSystem = "full";
        RemoveIPC = true;
        RestrictAddressFamilies = [