From 9e4b090e856f0a89b4104e7cb440e4a90a17a853 Mon Sep 17 00:00:00 2001 From: Antonio Querubin Date: Mon, 2 May 2016 22:43:08 -1000 Subject: [PATCH] Use setcap instead of setuid when installing the binary. --- Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 \ -- 2.47.2