1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00

dspam service: restrict socket access

This commit is contained in:
Nikolay Amiantov 2016-02-14 10:08:56 +03:00
parent 2cee5a42b0
commit a0afc49f0f

View file

@ -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";