icmp states I need to be running wine as root

Vitaliy Margolen wine-devel at kievinfo.com
Sun Oct 21 16:00:37 CDT 2007


EA Durbin wrote:
> I tried to update the Ocean application as outlined in bug 8332 and got a
> message from the console stating I needed to be running as root for ICMP to
> work. I thought wine was not to be run as root, is this not correct?
> 
>     int sid=socket(AF_INET,SOCK_RAW,IPPROTO_ICMP);
>     if (sid < 0) {
>         MESSAGE("WARNING: Trying to use ICMP (network ping) will fail unless running as root\n");
>         SetLastError(ERROR_ACCESS_DENIED);
>         return INVALID_HANDLE_VALUE;
>     }
It's not the ICMP you need to look at but "SOCK_RAW". This is not supported 
for regular users, only superuser.

Vitaliy.



More information about the wine-devel mailing list