From: Antonio Querubin Date: Tue, 3 May 2016 08:43:08 +0000 (-1000) Subject: Use setcap instead of setuid when installing the binary. X-Git-Tag: v0.87~9^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F114%2Fhead;p=thirdparty%2Fmtr.git Use setcap instead of setuid when installing the binary. --- diff --git a/Makefile.am b/Makefile.am index ed06db8..fa9a2dd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,8 @@ SUBDIRS = img sbin_PROGRAMS = mtr man_MANS = mtr.8 install-exec-hook: - chmod u+s $(DESTDIR)$(sbindir)/mtr + `setcap cap_net_raw+ep $(DESTDIR)$(sbindir)/mtr` \ + || chmod u+s $(DESTDIR)$(sbindir)/mtr mtr_SOURCES = mtr.c \ net.c net.h \