mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 18:32:58 +02:00
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.
This commit is contained in:
parent
3aac07bf59
commit
084520690f
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
case "${ACTION}" in
|
case "${ACTION}" in
|
||||||
post)
|
post)
|
||||||
setcap CAP_NET_RAW+ep usr/bin/mtr
|
setcap CAP_NET_RAW+ep usr/bin/mtr-packet
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
# Template file for 'mtr'
|
# Template file for 'mtr'
|
||||||
pkgname=mtr
|
pkgname=mtr
|
||||||
version=0.92
|
version=0.92
|
||||||
revision=1
|
revision=2
|
||||||
build_style="gnu-configure"
|
build_style="gnu-configure"
|
||||||
hostmakedepends="automake pkg-config gtk+-devel"
|
hostmakedepends="automake pkg-config gtk+-devel"
|
||||||
makedepends="ncurses-devel gtk+-devel"
|
makedepends="ncurses-devel gtk+-devel libcap-devel"
|
||||||
depends="libcap-progs"
|
depends="libcap-progs"
|
||||||
short_desc="Combines the functionality of traceroute and ping into one tool"
|
short_desc="Combines the functionality of traceroute and ping into one tool"
|
||||||
maintainer="Steven R <dev@styez.com>"
|
maintainer="Steven R <dev@styez.com>"
|
||||||
|
|
Loading…
Add table
Reference in a new issue