mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
security: need to specify the ping binary paths for setcap wrappers.
This commit is contained in:
parent
2efb60c8e9
commit
79f1a1e07a
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user