Bug 503 - The ping6 command in busybox doesn't work with user account.
Summary: The ping6 command in busybox doesn't work with user account.
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-30 06:33 UTC by Y.Ashiduka
Modified: 2009-07-30 10:43 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.