aboutsummaryrefslogtreecommitdiffstats
path: root/main/fping
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-02-02 13:08:51 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-02-02 13:16:04 +0000
commitd37ee34b7691ca0e2d59f39ec2dbc9484105c087 (patch)
tree8b90b627df7d76d6684bbfc3249b2c227c7c3d2e /main/fping
parentf30a6a4c8d913345983cf74f0611b249bb0ab6b3 (diff)
downloadaports-d37ee34b7691ca0e2d59f39ec2dbc9484105c087.tar.bz2
aports-d37ee34b7691ca0e2d59f39ec2dbc9484105c087.tar.xz
main/fping: enable suid root for fping6
It should be possible to make ping work as normal user with recent linux: https://lkml.org/lkml/2011/5/13/382 However, it appears that it requires relatively intrusive changes in the ping utility. Its not just opening the socket as SOCK_DGRAM and think everything is ok (like it appears to work on OSX) Busybox tried to add support for it: http://git.busybox.net/busybox/commit/networking/ping.c?id=72745632a13ccd12232127b31e1656f2f7ebcaff But later reverted it: http://git.busybox.net/busybox/commit/networking/ping.c?id=f0058b1b1fe9f7e69b415616096fb9347f599426 The patch for the normal ping utility is also relatively intrusive: http://openwall.info/wiki/_media/segoon/iputils-ss020927-pingsock.diff I could also not find anything that indicates that this works for ipv6 in kernel. There are no /proc/sys/net/ipv6/ping_group_range So it looks like we need to set suid root for now.
Diffstat (limited to 'main/fping')
-rw-r--r--main/fping/APKBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/fping/APKBUILD b/main/fping/APKBUILD
index 38cbe7aadd..db78126b75 100644
--- a/main/fping/APKBUILD
+++ b/main/fping/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fping
pkgver=3.10
-pkgrel=2
+pkgrel=3
pkgdesc="A utility to ping multiple hosts at once"
url="http://fping.org/"
arch="all"
@@ -39,7 +39,7 @@ build () {
package() {
cd "$_builddir"
make install DESTDIR="$pkgdir" || return 1
- chmod 4755 "$pkgdir"/usr/sbin/fping
+ chmod 4755 "$pkgdir"/usr/sbin/fping*
}
md5sums="6a0ddecb671df1d580d20c0dd1095773 fping-3.10.tar.gz