From 3faa33afa9b5b3817072d98c25ccc524bbdd50d8 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Wed, 3 Nov 2010 14:32:15 +0100 Subject: [PATCH] Use file capabilities instead of SUID (#646479). Signed-off-by: Adam Tkac --- mtr.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mtr.spec b/mtr.spec index f837cf7..85c3b32 100644 --- a/mtr.spec +++ b/mtr.spec @@ -1,7 +1,7 @@ Summary: A network diagnostic tool Name: mtr Version: 0.80 -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 2 Group: Applications/Internet License: GPLv2+ @@ -78,7 +78,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS COPYING FORMATS NEWS README SECURITY -%attr(4755,root,root) %{_sbindir}/mtr +%attr(0755,root,root) %caps(cap_net_raw=pe) %{_sbindir}/mtr %{_mandir}/man8/* %files gtk @@ -91,6 +91,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/pixmaps/mtr_icon.xpm %changelog +* Wed Nov 03 2010 Adam Tkac 2:0.80-2 +- use file capabilities instead of SUID (#646479) + * Tue Oct 26 2010 Jan Görig 2:0.80-1 - update to 0.80 - mtr now waits for last sent packet (#611739)