nixos/cjdns: tightened permissions via systemd, added caps

This commit is contained in:
Sophie Taylor 2016-11-05 01:22:17 +10:00 committed by Emery Hemingway
parent ffa3f868c9
commit 20e81f7c0d

View File

@ -245,7 +245,10 @@ in
serviceConfig = {
Type = "forking";
Restart = "on-failure";
CapabilityBoundingSet = "CAP_NET_ADMIN CAP_NET_RAW";
AmbientCapabilities = "CAP_NET_ADMIN CAP_NET_RAW";
ProtectSystem = "full";
MemoryDenyWriteExecute = true;
ProtectHome = true;
PrivateTmp = true;
};