error when upgrading iputils-20101006-3-arm

Problems with packages? Post here, using [tags] of the package name.

error when upgrading iputils-20101006-3-arm

Postby replabrobin » Tue Jun 26, 2012 10:32 pm

I got this error upgrading today on my sheeva plug

Code: Select all
(15/21) upgrading iputils                          [----------------------] 100%
Failed to set capabilities on file `usr/bin/ping' (Operation not supported)
usage: setcap [-q] [-v] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN                                      > ]

 Note <filename> must be a regular (non-symlink) file.
Failed to set capabilities on file `usr/bin/ping6' (Operation not supported)
usage: setcap [-q] [-v] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN                                      > ]

 Note <filename> must be a regular (non-symlink) file.
 >> Traceroute is now provided by core/traceroute
New optional dependencies for iputils
    xinetd: for tftpd


not at all sure what the problem is.
Code: Select all
$ uname -a
Linux delilah 3.1.10-11-ARCH #1 PREEMPT Mon May 21 05:59:32 UTC 2012 armv5tel GNU/Linux


I'm running on an ext2 fs; perhaps it dosen't support capablities?
replabrobin
 
Posts: 65
Joined: Tue Nov 30, 2010 11:18 am

Re: error when upgrading iputils-20101006-3-arm

Postby Geoff » Wed Jun 27, 2012 2:35 am

I found the same issue on a Pogo Pro, with an ext3 filesytem and uname -r => 2.6.31.6_SMP_820 ... I'm pretty sure ext3 supports file capabilities, so I guess file capabilities are not enabled in these kernels. I would suggest that a workaround for now might be "chmod u+s /usr/bin/ping /usr/bin/ping6" so that non-root users can once again use ping.
Geoff
 
Posts: 127
Joined: Wed Mar 09, 2011 5:14 pm

Re: error when upgrading iputils-20101006-3-arm

Postby karog » Wed Jun 27, 2012 5:31 am

I just ran into this. The following are the offending commands (from iputils/.INSTALL):
Code: Select all
 
setcap cap_net_raw=ep usr/bin/ping
setcap cap_net_raw=ep usr/bin/ping6

where from man capabilities one finds:
Code: Select all
CAP_NET_RAW
    * use RAW and PACKET sockets;
    * bind to any address for transparent proxying.
karog
 
Posts: 160
Joined: Thu Jan 05, 2012 7:55 pm

Re: error when upgrading iputils-20101006-3-arm

Postby replabrobin » Wed Jun 27, 2012 7:30 am

So this is trying to give the ping{6] commands certain abilities without having them run as root. I tried the
Code: Select all
chmod ug+s /usr/bin/ping{,6}

command and that does allow ping to work. Prior to that ping errors
Code: Select all
$ ping bunyip
ping: icmp open socket: Operation not permitted

presumably standard arch kernels either have setcap or the install must do some kind of test; I don't recall seeing this error in my pc arch updates.
replabrobin
 
Posts: 65
Joined: Tue Nov 30, 2010 11:18 am


Return to Packages

Who is online

Users browsing this forum: Bing [Bot] and 1 guest