How to disable network access for Wine?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
helpmeplz3434
Newbie
Newbie
Posts: 1
Joined: Wed Sep 12, 2012 12:49 am

How to disable network access for Wine?

Post by helpmeplz3434 »

Hi, how do I disable all Internet/network access for Wine? Thanks.
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Re: How to disable network access for Wine?

Post by DanKegel »

I did something like that once by modifying create_socket() in server/sock.c
to always fail. This requires rebuilding wine from source.

Alternately you might be able to do something more secure using
native linux security tools, though I haven't tried that.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: How to disable network access for Wine?

Post by vitamin »

The only way to do it is properly is using SELinux.
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Re: How to disable network access for Wine?

Post by DanKegel »

Right, if you only change Wine, malware that knows it's really running on Linux can still sneak out.

If your goal is to fool a well-behaved app, though, changing Wine might suffice.
User avatar
André H.
Moderator
Moderator
Posts: 202
Joined: Sun Dec 07, 2008 8:33 am

Re: How to disable network access for Wine?

Post by André H. »

I think we need some SELinux Howto for this, i see that question quite often. Sadly i never did something with SELinux
Locked