Preloader not able to read libwine w/ raw-socket permissions

Questions about Wine on Linux
Locked
Martianhunter
Newbie
Newbie
Posts: 1
Joined: Thu May 31, 2018 2:49 am

Preloader not able to read libwine w/ raw-socket permissions

Post by Martianhunter »

Hey

I have been trying to get wine to run a game multiplayer client, gameranger. Following the instructions over on appdb gave me good results, but there were issues. Namely, I would get this error repeated in my console

Code: Select all

0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
Thinking this might be the root to some network issues I was having in the service, I looked into solutions to this issue, and immediately found a solution on the wine FAQ page: enable the special privileges to wine-preloader via setcap. I did this, and suddenly wine simply stopped being able to launch. Looking into the error logs, this is due to an error while loading libwine.so.1.

Code: Select all

/opt/wine-stable/bin/wine64: error while loading shared libraries: libwine.so.1: cannot open shared object file: No such file or directory
0009:err:process:start_wineboot failed to start wineboot, err 1359
/opt/wine-stable/bin/wine64: error while loading shared libraries: libwine.so.1: cannot open shared object file: No such file or directory
0009:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0009:err:winediag:nodrv_CreateWindow The explorer process failed to start.
This is not just an error with gameranger - this applies to any window attempting to be launched by wine, even things like winecfg. The issue goes away if you remove the cap_net_raw+epi permissions, but returns no matter which or how many files I apply the permission to, including libwine.so.1.0. It is an easy enough fix, just remove the permissions, but the raw socket issue with gameranger remains.

Any ideas on the root of this issue?

0009:fixme:heap:RtlSetHeapInformation 0x110000 0 0x33ea9c 4 stub
0009:fixme:nls:GetThreadPreferredUILanguages 00000030, 0x33e978, 0x33e364 0x33e974
0009:fixme:nls:get_dummy_preferred_ui_language (0x30 0x33e978 0x33e364 0x33e974) returning a dummy value (current locale)
0009:fixme:process:SetProcessDEPPolicy (3): stub
0009:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0009:fixme:ntdll:EtwEventRegister ({d2d578d9-2936-45b6-a09f-30e32715f42d}, 0x100db5e0, 0x12cb1b30, 0x12e0f910) stub.
002d:fixme:dwrite:get_name_record_codepage encoding 20 not handled, platform 1.
002d:fixme:dwrite:get_name_record_codepage encoding 20 not handled, platform 1.
002d:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
002d:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
002d:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
002d:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
002d:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
002d:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
002d:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
002d:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
002d:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
002d:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
002d:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
002d:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
002d:fixme:nls:GetThreadPreferredUILanguages 00000038, 0x4bdfca4, (nil) 0x4bdfca8
002d:fixme:nls:get_dummy_preferred_ui_language (0x38 0x4bdfca4 (nil) 0x4bdfca8) returning a dummy value (current locale)
002d:fixme:nls:GetThreadPreferredUILanguages 00000038, 0x4bdfca4, 0x1e018020 0x4bdfca8
002d:fixme:nls:get_dummy_preferred_ui_language (0x38 0x4bdfca4 0x1e018020 0x4bdfca8) returning a dummy value (current locale)
002d:fixme:winsock:WSALookupServiceBeginW (0x4bdfacc 0x00000ff0 0x4bdfb08) Stub!
[0531/000030:ERROR:network_change_notifier_win.cc(153)] WSALookupServiceBegin failed with: 8
002d:fixme:iphlpapi:NotifyAddrChange (Handle 0x4bdfc4c, overlapped 0x1e018ee8): stub
002d:fixme:win:RegisterDeviceNotificationW (hwnd=0x100c6, filter=0x4bdfc20,flags=0x00000000) returns a fake device notification handle!
002d:fixme:win:RegisterDeviceNotificationW (hwnd=0x100c6, filter=0x4bdfc20,flags=0x00000000) returns a fake device notification handle!
002d:fixme:win:EnumDisplayDevicesW ((null),0,0x4bdf620,0x00000000), stub!
002d:fixme:ver:GetCurrentPackageId (0x4bdf82c (nil)): stub
002d:fixme:dwmapi:DwmIsCompositionEnabled 0x4bdebfc
002d:fixme:wtsapi:WTSRegisterSessionNotification Stub 0x100ca 0x00000000
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
0009:err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
003a:fixme:file:SetFileCompletionNotificationModes 0x4cc 1 - stub
0038:fixme:ntdll:EtwRegisterTraceGuidsW (0x100e7020, 0x12e14b78, {3dada31d-19ef-4dc1-b345-037927193422}, 1, 0x12cb1b70, (null), (null), 0x12e14b90): stub
0038:fixme:ntdll:EtwRegisterTraceGuidsW register trace class {00000000-0000-0000-0000-000000000000}
0064:fixme:heap:RtlSetHeapInformation 0x110000 0 0x33f62c 4 stub
0064:fixme:process:SetProcessDEPPolicy (3): stub
0064:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0064:fixme:ntdll:EtwEventRegister ({d2d578d9-2936-45b6-a09f-30e32715f42d}, 0x100db5e0, 0x12cb1b30, 0x12e0f910) stub.
0064:fixme:ntdll:EtwRegisterTraceGuidsW (0x100e7020, 0x12e14b78, {3dada31d-19ef-4dc1-b345-037927193422}, 1, 0x12cb1b70, (null), (null), 0x12e14b90): stub
0064:fixme:ntdll:EtwRegisterTraceGuidsW register trace class {00000000-0000-0000-0000-000000000000}
0064:fixme:gdi:GdiInitializeLanguagePack stub
0064:fixme:ntdll:EtwUnregisterTraceGuids deadbeef: stub
0064:fixme:ntdll:EtwEventUnregister (deadbeef) stub
/opt/wine-stable/bin/wine64: error while loading shared libraries: libwine.so.1: cannot open shared object file: No such file or directory
0009:err:process:start_wineboot failed to start wineboot, err 1359
/opt/wine-stable/bin/wine64: error while loading shared libraries: libwine.so.1: cannot open shared object file: No such file or directory
0009:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0009:err:winediag:nodrv_CreateWindow The explorer process failed to start.
0009:fixme:heap:RtlSetHeapInformation 0x110000 0 0x32ea9c 4 stub
0009:fixme:nls:GetThreadPreferredUILanguages 00000030, 0x32e978, 0x32e364 0x32e974
0009:fixme:nls:get_dummy_preferred_ui_language (0x30 0x32e978 0x32e364 0x32e974) returning a dummy value (current locale)
0009:fixme:process:SetProcessDEPPolicy (3): stub
0009:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0009:fixme:ntdll:EtwEventRegister ({d2d578d9-2936-45b6-a09f-30e32715f42d}, 0x100db5e0, 0x12cb1b30, 0x12e0f910) stub.
0010:fixme:dwrite:get_name_record_codepage encoding 20 not handled, platform 1.
0010:fixme:dwrite:get_name_record_codepage encoding 20 not handled, platform 1.
0010:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
0010:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
0010:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
0010:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
0010:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
0010:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
0010:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
0010:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
0010:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
0010:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
0010:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
0010:fixme:dwrite:get_name_record_locale failed to get locale name for lcid=0x00000455
0010:fixme:nls:GetThreadPreferredUILanguages 00000038, 0x4bdfca4, (nil) 0x4bdfca8
0010:fixme:nls:get_dummy_preferred_ui_language (0x38 0x4bdfca4 (nil) 0x4bdfca8) returning a dummy value (current locale)
0010:fixme:nls:GetThreadPreferredUILanguages 00000038, 0x4bdfca4, 0x1e0050c0 0x4bdfca8
0010:fixme:nls:get_dummy_preferred_ui_language (0x38 0x4bdfca4 0x1e0050c0 0x4bdfca8) returning a dummy value (current locale)
0010:fixme:winsock:WSALookupServiceBeginW (0x4bdfacc 0x00000ff0 0x4bdfb08) Stub!
[0531/000323:ERROR:network_change_notifier_win.cc(153)] WSALookupServiceBegin failed with: 8
0010:fixme:iphlpapi:NotifyAddrChange (Handle 0x4bdfc4c, overlapped 0x1e005c18): stub
0010:fixme:win:RegisterDeviceNotificationW (hwnd=(nil), filter=0x4bdfc20,flags=0x00000000) returns a fake device notification handle!
0010:fixme:win:RegisterDeviceNotificationW (hwnd=(nil), filter=0x4bdfc20,flags=0x00000000) returns a fake device notification handle!
[0531/000323:FATAL:hwnd_util.cc(66)] : Invalid window handle. (0x578)

Elementary OS 0.4.1 Loki
Wine 3.0.1
GameRanger -
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Preloader not able to read libwine w/ raw-socket permiss

Post by Bob Wya »

@Martianhunter

Are you doing:

Code: Select all

sudo setcap cap_net_raw+epi "/opt/wine-stable/bin/wine64-preloader"
sudo setcap cap_net_raw+epi "/opt/wine-stable/bin/wine-preloader"
??

Bob
Locked