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
@ -1,5 +1,5 @@
|
||||
case "${ACTION}" in
|
||||
post)
|
||||
setcap CAP_NET_RAW+ep usr/bin/mtr
|
||||
setcap CAP_NET_RAW+ep usr/bin/mtr-packet
|
||||
;;
|
||||
esac
|
||||
|
@ -1,10 +1,10 @@
|
||||
# Template file for 'mtr'
|
||||
pkgname=mtr
|
||||
version=0.92
|
||||
revision=1
|
||||
revision=2
|
||||
build_style="gnu-configure"
|
||||
hostmakedepends="automake pkg-config gtk+-devel"
|
||||
makedepends="ncurses-devel gtk+-devel"
|
||||
makedepends="ncurses-devel gtk+-devel libcap-devel"
|
||||
depends="libcap-progs"
|
||||
short_desc="Combines the functionality of traceroute and ping into one tool"
|
||||
maintainer="Steven R <dev@styez.com>"
|
||||
|
Loading…
Reference in New Issue
Block a user