can someone help show how to protect my system from viruses running on wine?

Asked by Nathaniel edwards

I read somewhere you can get viruses with wine on your computer

Some tips were given on how to protect yourself I was wonder if someone can help me configure wine
I dont know what any of this Means
-you can further confine the "fake c drive" located at ~/.wine if you remove any symbolic links outside ~/.wine. With a default installation there is link with a default installation / configuration of wine :
~/.wine/dosdevices/z: -> links to /

A link from ~/.wine/dosdevices to the root directory ( / ) should concern you for obvious reasons.

You can remove it with :

Code:
unlink ~/.wine/dosdevices/z:

http://ubuntuforums.org/showthread.php?t=510812 this is the link were I original got the info its under the virus section

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu wine Edit question
Assignee:
No assignee Edit question
Solved by:
Nathaniel edwards
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Sure but they will only affect the wine install. They will not affect the running of ubuntu as Ubuntu is not Windows. If you keep a backup of ~/.wine you can simply restore it if you do get a virus. I personally doubt you will get any kind of virus in wine but it is possible I guess.

Depends how extensive your tinfoil hat collection is. Personally I wouldn't worry

Revision history for this message
Nathaniel edwards (loekanle) said :
#2

???tinfoil hat collection???

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3
Revision history for this message
marcus aurelius (adbiz) said :
#4

you don't have to worry about get virii on wine. wine is a windoze emulator and doesn't use the same code as windoze. virii works off poorly written codes in windoze.

Revision history for this message
Nathaniel edwards (loekanle) said :
#5

lmfao @ actionparship hilarious but I like to use the metal spaghetti strainer instead

Revision history for this message
Nathaniel edwards (loekanle) said :
#6

But just in case can I confine wine to AppArmor

Revision history for this message
Chris (fabricator4) said :
#7

You _can_ get viruses in wine as demonstrated by this person who purposely infected their machine with the somefool worm:
http://ubuntuforums.org/showthread.php?t=72598

Since the virus can only affect the parts of the drive that wine has access to, there is very little danger. At worst you would have to remove and re-install wine. You should only do high risk tasks (web surfing, email, shopping, banking etc) from your Linux applications. If you're using wine extensively for anything, consider when you might be better off with a dual boot setup or running Windows in a VM (eg VirtualBox) where you can also install the usual anti-virus software. Consider whether you need the machine on-line when using wine, and what the risk are. Most of it is common sense - the person in the thread above (and others in similar threads) only managed to infect their machines by trying to do so.

Note that it would be a very bad idea to install wine and run it as root, although even then it's hard to know how a windows or mac virus could do very much to a linux installation.

Chris

Revision history for this message
Nathaniel edwards (loekanle) said :
#8

I only use wine for Microsoft word thats really it

Revision history for this message
Chris (fabricator4) said :
#9

Well, Microsoft documents do also come under the "high risk" category because they can contain code designed to run as a script. The code can get added to even the base documents that you create from then on.

 If you get any documents from other people run them through a virus checker before loading them into Word and you should be fine.

Chris.