git.iko.soy/typeable/nixpkgs
on master help sign in
cjdns service: allow daemon to drop privileges

The service can run certain components with reduced privileges, but for that it needs the setuid capability.

commit2628597e7692ff465d7c575a1c1bfdce35833cad authorJoachim Fasting <joachifm@fastmail.fm> dateSun 5 Feb 2017, 04:46 (10 years ago) parenta0338af
1 file changed+1−2
nixos/modules/services/networking/cjdns.nix+1−2
nixos/modules/services/networking/cjdns.nix+1−2
@@ -258,8 +258,7 @@ in
258258 Restart = "always";
259259 StartLimitInterval = 0;
260260 RestartSec = 1;
261− CapabilityBoundingSet = "CAP_NET_ADMIN CAP_NET_RAW";
262− AmbientCapabilities = "CAP_NET_ADMIN CAP_NET_RAW";
261+ CapabilityBoundingSet = "CAP_NET_ADMIN CAP_NET_RAW CAP_SETUID";
263262 ProtectSystem = true;
264263 MemoryDenyWriteExecute = true;
265264 ProtectHome = true;