[Bug 15363] New: ICMP ping failed with non-root privileges

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Sep 21 16:17:42 CDT 2008


           Summary: ICMP ping failed with non-root privileges
           Product: Wine
           Version: 1.0.0
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: winsock
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: sysrq at web.de

Created an attachment (id=16206)
 --> (http://bugs.winehq.org/attachment.cgi?id=16206)
trace with failed ICMP ping attempts

I am running a program which executes an ICMP ping to check lag to other
clients. The program uses ping very often. Everytime the program tries to
execute a ICMP ping, the following error eccours:

WARNING: Trying to use ICMP (network ping) will fail unless running as root

I dont want to run wine with root privileges. It just makes no sense to give
wine full root privileges just to run a ICMP ping.

I run the program with

WINEDEBUG=+winsock wine Program.exe > trace.txt 2>&1

to create a trace.txt which contains some debuging information. I attached it
to this bug report.

I am not sure, but I guess that wine tries to execute a sendto() to the kernel
to open a PF_INET socket. But to open a PF_INET socket root privileges are
neccesary, I guess.

There must be another way to allow wine to execute an ICMP ping. One solution
would be that wine uses /bin/ping. But I dont know if this is the best

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list