nixos/cjdns: fix service for i686 (#40740)

service failed to start because of MemoryDenyWriteExecute = true,
which seems not to work on i686
This commit is contained in:
xeji 2018-05-20 01:01:42 +02:00 committed by GitHub
parent 8bcec815bd
commit f4ec18aaac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,7 +260,8 @@ in
RestartSec = 1;
CapabilityBoundingSet = "CAP_NET_ADMIN CAP_NET_RAW CAP_SETUID";
ProtectSystem = true;
MemoryDenyWriteExecute = true;
# Doesn't work on i686, causing service to fail
MemoryDenyWriteExecute = !pkgs.stdenv.isi686;
ProtectHome = true;
PrivateTmp = true;
};