void-packages/srcpkgs/mtr/INSTALL
Daniel Néri 084520690f mtr: setcap on the correct binary (mtr-packet)
From version 0.88 mtr sends probes from a subprocess "mtr-packet",
so that's what needs the privileged capabilities.

Also, link with libcap which lets mtr-packet drop its privileges when
they're no longer needed.
2017-06-10 17:40:17 +02:00

5 lines
77 B
Text

case "${ACTION}" in
post)
setcap CAP_NET_RAW+ep usr/bin/mtr-packet
;;
esac