-
Notifications
You must be signed in to change notification settings - Fork 0
Wine raw sockets
(Taken from http://appdb.winehq.org/objectManager.php?sClass=version&iId=17268)
The game fails to start if it cannot open a raw socket used for netplay (and it tries to). By default Wine presents such a warning in this case: "WARNING: Trying to create a socket of type SOCK_RAW, this will fail unless you have special permissions." It just doesn't tell you how to obtain these permissions. Since running Wine as root is unsupported and quite inconvenient, you can grant it just the needed capabilities using setcap (on Debian it comes in libcap2-bin package). This would work with kernel 2.6.24 or later compiled with file capabilities enabled.
So, you basically have to install libcap2-bin and execute
$ sudo setcap cap_net_raw=ep /usr/bin/wineserver
You can later check whether it was set successfully with
$ getcap -v /usr/bin/wineserver
It should return you something like
/usr/bin/wineserver = cap_net_raw+ep
There may exist some security risks concerning this permission, still it is better than running wine as root. The game should start now.