Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#48707 - [iptutils] Ping only works for root

Attached to Project: Arch Linux
Opened by Johannes Rohr (jro) - Sunday, 27 March 2016, 08:55 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 30 May 2016, 06:41 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

If I try ping as non-root, the following happens:

ping: socket: Operation not permitted (raw socket required by specified options).

Additional info:
* package version(s) 20150815.1c59920-3
* config and/or log files etc.

(none)

This task depends upon

Closed by  Tobias Powalowski (tpowa)
Monday, 30 May 2016, 06:41 GMT
Reason for closing:  Fixed
Comment by Doug Newgard (Scimmia) - Sunday, 27 March 2016, 15:18 GMT
What is the output of 'which ping' and 'getcap ${which ping}'?
Comment by Doug Newgard (Scimmia) - Tuesday, 29 March 2016, 14:29 GMT
Ping?
Comment by Johannes Rohr (jro) - Tuesday, 29 March 2016, 15:39 GMT
which ping
/usr/bin/ping

getcap `which ping`
/usr/bin/ping = cap_net_raw+ep
Comment by Doug Newgard (Scimmia) - Tuesday, 29 March 2016, 15:42 GMT
So it should work. Standard Arch kernel?
Comment by Johannes Rohr (jro) - Tuesday, 29 March 2016, 15:47 GMT
yes,

:~$ uname -a
Linux tommy 4.4.5-1-ARCH #1 SMP PREEMPT Thu Mar 10 07:38:19 CET 2016 x86_64 GNU/Linux
Comment by Johannes Rohr (jro) - Tuesday, 29 March 2016, 15:48 GMT
btw, I am currently seeing this on two laptops
Comment by Tobias Powalowski (tpowa) - Wednesday, 30 March 2016, 17:40 GMT
pacman -S iputils and retry again.
Comment by Tobias Powalowski (tpowa) - Thursday, 21 April 2016, 06:59 GMT
Fixed?
Comment by Johannes Rohr (jro) - Tuesday, 10 May 2016, 15:55 GMT
still seeing this issue on one machine, a Dell Latitude e6420, with an up-to-date Arch install
Comment by Johannes Rohr (jro) - Monday, 30 May 2016, 06:03 GMT
Obviously the capabilities were missing, getcap /usr/bin/ping gave an empty result. I reinstalled iputils and it was fixed.

Loading...