Bug 503

Summary: The ping6 command in busybox doesn't work with user account.
Product: Busybox Reporter: Y.Ashiduka <ashiduka>
Component: NetworkingAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Y.Ashiduka 2009-07-30 06:33:19 UTC
The ping6 command in busybox doesn't work with user account.
The message is below.

$ ping6 xxxx::xxx:xxxx:xxxx:xxxx%eth0
PING xxxx::xxx:xxxx:xxxx:xxxx%eth0 (xxxx::xxx:xxxx:xxxx:xxxx%eth0): 56 data bytes
ping6: permission denied. (are you root?)

I found the define "USE_PING6" in include/applets.h for V1.14.2 as below. (line:287)
> USE_PING6(APPLET(ping6, _BB_DIR_BIN, _BB_SUID_NEVER))
                                       ^^^^^^^^^^^^^^
I'm afraid of the socket() will fail if we don't use _BB_SUID_MAYBE. 
Do we have to use it instead of _BB_SUID_NEVER same as USE_PING?
Comment 1 Denys Vlasenko 2009-07-30 10:43:07 UTC
Good catch. Fixed in git.