security: need to specify the ping binary paths for setcap wrappers.

This commit is contained in:
Parnell Springmeyer 2016-07-01 11:53:21 -05:00
parent 2efb60c8e9
commit 79f1a1e07a

View File

@ -894,11 +894,13 @@ in
security.setcapCapabilities = mkIf (versionAtLeast (getVersion config.boot.kernelPackages.kernel) "4.3") (
[
{ program = "ping";
source = "${pkgs.iputils.out}/bin/ping";
setcap = true;
capabilities = "cap_net_raw+p";
}
{ program = "ping6";
source = "${pkgs.iputils.out}/bin/ping6";
setcap = true;
capabilities = "cap_net_raw+p";
}