nixos/cjdns: fix service for i686 (#40740)
service failed to start because of MemoryDenyWriteExecute = true,
which seems not to work on i686
commitf4ec18aaaca9e46b4f304d2a7f5f06bd6222c0e5
authorxeji <36407913+xeji@users.noreply.github.com>
dateSun 20 May 2018, 01:01 (9 years ago)
parent8bcec81
nixos/modules/services/networking/cjdns.nix+2−1
@@ -260,7 +260,8 @@ in
260260 RestartSec = 1;
261261 CapabilityBoundingSet = "CAP_NET_ADMIN CAP_NET_RAW CAP_SETUID";
262262 ProtectSystem = true;
263− MemoryDenyWriteExecute = true;
263+ # Doesn't work on i686, causing service to fail
264+ MemoryDenyWriteExecute = !pkgs.stdenv.isi686;
264265 ProtectHome = true;
265266 PrivateTmp = true;
266267 };