How to stop wine from creating ~/.wine/dosdevices/* files?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
raoof
Newbie
Newbie
Posts: 3
Joined: Thu Nov 10, 2016 12:50 am

How to stop wine from creating ~/.wine/dosdevices/* files?

Post by raoof »

hi
this question asked here and here but with no answer
I appreciate it if you could help me.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to stop wine from creating ~/.wine/dosdevices/* file

Post by dimesio »

You could make that directory read-only. Note that configuration is not supported; any problems that creates will be yours to solve.
raoof
Newbie
Newbie
Posts: 3
Joined: Thu Nov 10, 2016 12:50 am

Re: How to stop wine from creating ~/.wine/dosdevices/* file

Post by raoof »

thanks but it doesn't work
err:ntdll:RtlpWaitForCriticalSection section 0x7ffc95a0 "device.c: device_section" wait timed out in thread 0019, blocked by 001c, retrying (60 sec)
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to stop wine from creating ~/.wine/dosdevices/* file

Post by dimesio »

"Doesn't work" in what sense?

On my system making the dosdevices directory read-only does prevent Wine from adding any new links to it, and it doesn't even break winecfg or notepad. Whether it breaks other apps, I don't know; it might, which is why I warned you it's not supported.

If you were hoping that doing this would somehow solve some problem you're having, now would be a good time to explain the problem.
raoof
Newbie
Newbie
Posts: 3
Joined: Thu Nov 10, 2016 12:50 am

Re: How to stop wine from creating ~/.wine/dosdevices/* file

Post by raoof »

I tested two program both gave that error.
I just want to restrict windows programs access to my files ( in my case: freegate )
because of security I think Wine need to fix this issue.

thanks
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to stop wine from creating ~/.wine/dosdevices/* file

Post by dimesio »

Removing the z: link will prevent apps running in Wine from being able to read or write files outside the wineprefix, but that is also not supported because it will break some things and is not really a defense against malware. Security needs to be handled by the host system, not Wine.
Locked