[Bug 7929] C&C 3 network does not work

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Sep 30 09:31:58 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=7929

--- Comment #114 from Erich Hoover <ehoover at mines.edu> 2011-09-30 09:31:58 CDT ---
Created attachment 36613
  --> http://bugs.winehq.org/attachment.cgi?id=36613
Patch to selectively bind while still allowing broadcasts [alternative]

Ok folks, I have an alternative solution to this bug based on the old
SO_BINDTODEVICE socket option.  As we're all likely aware, SO_BINDTODEVICE
requires administrative access.  However, SO_BINDTODEVICE can also be used if
the running process has the CAP_NET_RAW capability set.  So, to use the
attached patch:
1) apply patch
2) compile and install wine
3) add the CAP_NET_RAW capability to the preloader:
sudo setcap cap_net_raw+epi `which wine-preloader`
4) run the application that requires interface-specific binding

Unfortunately, this solution will only work on Linux (unlike my other
solution).  However, I believe that Alexandre might find this solution more
palatable than my previous attempt.  If everyone affected could please review
and test the attached patch then I would greatly appreciate it.

-- 
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