From a0afc49f0f199c73e1173ede7d58d74842c4551d Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Sun, 14 Feb 2016 10:08:56 +0300 Subject: [PATCH] dspam service: restrict socket access --- nixos/modules/services/mail/dspam.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/mail/dspam.nix b/nixos/modules/services/mail/dspam.nix index 96b0e165c4d..46e6f216b21 100644 --- a/nixos/modules/services/mail/dspam.nix +++ b/nixos/modules/services/mail/dspam.nix @@ -111,6 +111,7 @@ in { User = cfg.user; Group = cfg.group; RuntimeDirectory = optional (cfg.domainSocket == defaultSock) "dspam"; + RuntimeDirectoryMode = optional (cfg.domainSocket == defaultSock) "0750"; PermissionsStartOnly = true; # DSPAM segfaults on just about every error Restart = "on-failure";