Description of problem: Several problems with "ping -I IfaceName": 1) it seems (in strace) as ping drops its capabilities before calling setsockopt(..,SO_BINDTODEVICE, IfName,..), thus this operation always ends with EPERM (Operation not permitted). 2) I'm not sure when Fedora patch for unsuccessful setsockopt() call, which says: Warning: cannot bind to specified iface, falling back: Operation not permitted is adequate. Should not rather exit in this case? 3) ping behavior for "ping -I IPAddress" and "ping -I IfaceName" is fairly different. It should be mentioned in ping man pages. 4) Newer version iputils-20121011 is available, it would be fine use it. Version-Release number of selected component (if applicable): iputils-20101006-14.fc17.i686
(In reply to comment #0) > 1) it seems (in strace) as ping drops its capabilities before calling > setsockopt(..,SO_BINDTODEVICE, IfName,..), thus this operation always ends > with EPERM (Operation not permitted). In progress... Coming Real Soon Now (tm) > 2) I'm not sure when Fedora patch for unsuccessful setsockopt() call, which > says: Fixed by upstream - it's considered a fatal error and exits now. Fixed in rawhide as well. > 3) ping behavior for "ping -I IPAddress" and "ping -I IfaceName" is fairly > different. It should be mentioned in ping man pages. Fixed by upstream and in rawhide. > 4) Newer version iputils-20121011 is available, it would be fine use it. I don't think it's worth updating in F17. If you really want the new version, please file a separate RFE for that. I'm probably going to backport 2) and 3) as well.
Pushed: http://lists.fedoraproject.org/pipermail/scm-commits/2012-December/912344.html
iputils-20101006-16.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/iputils-20101006-16.fc17
Package iputils-20101006-16.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing iputils-20101006-16.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-20003/iputils-20101006-16.fc17 then log in and leave karma (feedback).
iputils-20101006-16.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.