wine with Fedora 16... need help please

Questions about Wine on Linux
Locked
jdmBlue
Newbie
Newbie
Posts: 3
Joined: Thu Apr 05, 2012 2:43 am

wine with Fedora 16... need help please

Post by jdmBlue »

I`m having trouble running some games (JadeDynasty,War Of The Immortals) after I have installed them and I need to determine if this is the problem.

Is anyone famaliar with the following msg:

SELinux is preventing wine-preloader from mmap_zero access on the memprotect .

***** Plugin mmap_zero (53.1 confidence) suggests **************************

If you do not think wine-preloader should need to mmap low memory in the kernel.
Then you may be under attack by a hacker, this is a very dangerous access.
Do
contact your security administrator and report this issue.

***** Plugin catchall_boolean (42.6 confidence) suggests *******************

If you want to control the ability to mmap a low area of the address space, as configured by /proc/sys/kernel/mmap_min_addr.
Then you must tell SELinux about this by enabling the 'mmap_low_allowed'boolean.
Do
setsebool -P mmap_low_allowed 1

***** Plugin catchall (5.76 confidence) suggests ***************************

If you believe that wine-preloader should be allowed mmap_zero access on the memprotect by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep wine-preloader /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context unconfined_u:unconfined_r:wine_t:s0-s0:c0.c1023
Target Context unconfined_u:unconfined_r:wine_t:s0-s0:c0.c1023
Target Objects [ memprotect ]
Source wine-preloader
Source Path wine-preloader
Port <Unknown>
Host localhost.localdomain
Source RPM Packages
Target RPM Packages
Policy RPM selinux-policy-3.10.0-80.fc16.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name localhost.localdomain
Platform Linux localhost.localdomain 3.3.1-2.fc16.i686 #1
SMP Tue Apr 3 01:44:31 UTC 2012 i686 i686
Alert Count 30
First Seen Fri 06 Apr 2012 04:45:00 PM CDT
Last Seen Fri 06 Apr 2012 10:50:32 PM CDT
Local ID bbac646f-bcb9-4fea-8bdf-3873668dd0d5

Raw Audit Messages
type=AVC msg=audit(1333770632.189:67): avc: denied { mmap_zero } for pid=1603 comm="wine-preloader" scontext=unconfined_u:unconfined_r:wine_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:wine_t:s0-s0:c0.c1023 tclass=memprotect


Hash: wine-preloader,wine_t,wine_t,memprotect,mmap_zero

audit2allow

#============= wine_t ==============
#!!!! This avc can be allowed using the boolean 'mmap_low_allowed'

allow wine_t self:memprotect mmap_zero;

audit2allow -R

#============= wine_t ==============
#!!!! This avc can be allowed using the boolean 'mmap_low_allowed'

allow wine_t self:memprotect mmap_zero;
User avatar
dimesio
Moderator
Moderator
Posts: 13204
Joined: Tue Mar 25, 2008 10:30 pm

Re: wine with Fedora 16... need help please

Post by dimesio »

jdmBlue wrote:I`m having trouble running some games (JadeDynasty,War Of The Immortals) after I have installed them and I need to determine if this is the problem.

Is anyone famaliar with the following msg:

SELinux is preventing wine-preloader from mmap_zero access on the memprotect .
Yes, this will prevent Wine from working. The rest of the message has explicit instructions as to how to configure SELinux to enable Wine to access low memory; do what it says. If you need further help with SELinux, ask on your distro's support forum; how to configure SELinux is not a Wine question.
Locked