3
0
Fork 0
forked from mirrors/nixpkgs

fail2ban: Fix preStart action

Creating /run/fail2ban didn't work since it didn't have write
permission to /run.  Now it does.

Reported by Thomas Bereknyei.
This commit is contained in:
Eelco Dolstra 2013-12-11 21:14:17 +01:00
parent ee8a58a72f
commit 14018c2de1

View file

@ -106,7 +106,7 @@ in
serviceConfig =
{ ExecStart = "${pkgs.fail2ban}/bin/fail2ban-server -f";
ReadOnlyDirectories = "/";
ReadWriteDirectories = "/run/fail2ban /var/tmp";
ReadWriteDirectories = "/run /var/tmp";
CapabilityBoundingSet = "CAP_DAC_READ_SEARCH CAP_NET_ADMIN CAP_NET_RAW";
};