Maximilian Bosch 50a34e55b2
nixos/iftop: add module
This patch is heavily inspired by bd0d8ed807d29faa3deee96bafcbbd76c8fa4060 which added
a setcap wrapper for `mtr` in order to allow running `mtr` without
`sudo`. The need for the capability `cap_net_raw` that can be registered using
`setcap` has been documented in the Arch Wiki: https://wiki.archlinux.org/index.php/Capabilities#iftop

A simple testcase has been added which starts two machines, one with a
setcap wrapper for `iftop`, one without. Both testcases monitor the
bandwidth usage of the machine using the options `-t -s 1` once, the
machine with setcap wrapper is expected to succeed, the `iftop` on the
machine without setcap wrapper is expected to return a non-zero exit
code.
2018-04-07 15:06:51 +02:00
..
2018-02-09 19:51:06 +00:00
2017-09-29 15:18:25 +01:00
2017-08-11 15:48:45 +00:00
2018-04-07 15:06:51 +02:00
2017-09-23 20:34:55 +02:00
2017-08-25 14:08:11 +02:00
2017-07-23 12:56:04 +03:00
2018-03-12 15:13:31 +11:00
2017-09-29 15:01:21 +01:00
2018-02-09 19:51:06 +00:00
2018-01-04 09:58:21 +01:00