You are not logged in.
Pages: 1
Noticed it is not setuid or setcap CAP_NET_RAW
$ ls -la /bin/ping
-rwxr-xr-x 1 root root 155160 2024-09-05 20:17 /bin/ping
$ getcap -vr /bin/ping
/bin/pinghow is ping implemented on arch?
Offline
The package providing ping is iputils. You can check it's implementation on Github.
The reason why ping can bind to a socket is the net.ipv4.ping_group_range parameter. This parameter specifies the guid range for which users are allowed to use icmp.
You can check your value with:
cat /proc/sys/net/ipv4/ping_group_rangeEdit: Fixed link
Last edited by lmn (2024-12-28 17:04:00)
Offline
Pages: 1