Merge pull request #22882 from bjornfor/wireshark

nixos: add programs.wireshark option
This commit is contained in:
Robin Gloster
2017-02-20 14:03:30 +01:00
committed by GitHub
3 changed files with 45 additions and 1 deletions
+2 -1
View File
@@ -28,6 +28,7 @@ let
, source
, owner ? "nobody"
, group ? "nogroup"
, permissions ? "u+rx,g+x,o+x"
, ...
}:
assert (lib.versionAtLeast (lib.getVersion config.boot.kernelPackages.kernel) "4.3");
@@ -45,7 +46,7 @@ let
${pkgs.libcap.out}/bin/setcap "cap_setpcap,${capabilities}" $wrapperDir/${program}
# Set the executable bit
chmod u+rx,g+x,o+x $wrapperDir/${program}
chmod ${permissions} $wrapperDir/${program}
'';
###### Activation script for the setuid wrappers