From c087db1fbb3fe482c265213851c2475199c9067f096677d85f6d56c526068146 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 11 Oct 2010 12:51:32 +0000 Subject: [PATCH] Accepting request 50187 from home:RedDwarf:branches:network:utilities OBS-URL: https://build.opensuse.org/request/show/50187 OBS-URL: https://build.opensuse.org/package/show/network:utilities/iputils?expand=0&rev=15 --- iputils.changes | 5 +++++ iputils.spec | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/iputils.changes b/iputils.changes index 9415122..6118300 100644 --- a/iputils.changes +++ b/iputils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Oct 11 03:56:55 UTC 2010 - reddwarf@opensuse.org + +- Use POSIX capabilities instead of SUID for ping + ------------------------------------------------------------------- Tue Sep 7 20:35:03 UTC 2010 - aj@suse.de diff --git a/iputils.spec b/iputils.spec index 59624fd..ca3d9c9 100644 --- a/iputils.spec +++ b/iputils.spec @@ -100,8 +100,14 @@ rm -rf $RPM_BUILD_ROOT /sbin/arping /sbin/ifenslave /sbin/clockdiff +# Official rpm packages prior to 11.4 hadn't libcap support +%if 0%{?suse_version} <= 1130 %attr(4755,root,root) /bin/ping %attr(4755,root,root) /bin/ping6 +%else +%caps(cap_net_raw=ep) /bin/ping +%caps(cap_net_raw=ep) /bin/ping6 +%endif /bin/ipg /sbin/tracepath /sbin/tracepath6