about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorRyan Lahfa <masterancpp@gmail.com>2024-01-17 03:42:31 +0100
committerGitHub <noreply@github.com>2024-01-17 03:42:31 +0100
commitbbd92ae0479d169c7917a92e482d598e6ea6091d (patch)
treebaad97167d9b9aa40bd051423da2273e19c0bcda /nixos
parent44596db6077584d129fa5c5ed6ff2e06dbb828b0 (diff)
parent4c84c9c1c36cb0daa2eaa04b3f5c415fac1cac57 (diff)
Merge pull request #280561 from RaitoBezarius/fix-listmonk-module
nixos/mail/listmonk: fix hardening directives
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/mail/listmonk.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/nixos/modules/services/mail/listmonk.nix b/nixos/modules/services/mail/listmonk.nix
index be2f9680ca5ac..945eb436c1f23 100644
--- a/nixos/modules/services/mail/listmonk.nix
+++ b/nixos/modules/services/mail/listmonk.nix
@@ -201,13 +201,12 @@ in {
         DynamicUser = true;
         NoNewPrivileges = true;
         CapabilityBoundingSet = "";
-        SystemCallArchitecture = "native";
+        SystemCallArchitectures = "native";
         SystemCallFilter = [ "@system-service" "~@privileged" ];
-        ProtectDevices = true;
+        PrivateDevices = true;
         ProtectControlGroups = true;
         ProtectKernelTunables = true;
         ProtectHome = true;
-        DeviceAllow = false;
         RestrictNamespaces = true;
         RestrictRealtime = true;
         UMask = "0027";