Bug 878709

Summary: SELinux is preventing wine-preloader from 'mmap_zero' accesses on the memprotect .
Product: [Fedora] Fedora Reporter: gregorymorelo
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:7774f653e3da691a306c93c01e63776e9f463da61237237ad84821ef7dd40db8
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-21 10:52:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description gregorymorelo 2012-11-21 03:06:21 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.3-1.fc17.i686

description:
:SELinux is preventing wine-preloader from 'mmap_zero' accesses 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 mmap_low_allowed
:Then you must tell SELinux about this by enabling the 'mmap_low_allowed' boolean.You can read 'unconfined_selinux' man page for more details.
: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:unconfined_t:s0-s0:c0.c1
:                              023
:Target Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
:                              023
:Target Objects                 [ memprotect ]
:Source                        wine-preloader
:Source Path                   wine-preloader
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-156.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.3-1.fc17.i686 #1 SMP Mon Oct
:                              22 16:10:29 UTC 2012 i686 i686
:Alert Count                   387
:First Seen                    2012-11-03 22:43:57 BRT
:Last Seen                     2012-11-21 01:04:40 BRT
:Local ID                      6beaeb58-7612-47f3-bcfe-db43a175c7a9
:
:Raw Audit Messages
:type=AVC msg=audit(1353470680.782:214): avc:  denied  { mmap_zero } for  pid=13292 comm="wine-preloader" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=memprotect
:
:
:Hash: wine-preloader,unconfined_t,unconfined_t,memprotect,mmap_zero
:
:audit2allow
:
:#============= unconfined_t ==============
:#!!!! This avc can be allowed using the boolean 'mmap_low_allowed'
:
:allow unconfined_t self:memprotect mmap_zero;
:
:audit2allow -R
:
:#============= unconfined_t ==============
:#!!!! This avc can be allowed using the boolean 'mmap_low_allowed'
:
:allow unconfined_t self:memprotect mmap_zero;
:


Potential duplicate bug: 665665

Comment 1 gregorymorelo 2012-11-21 03:06:25 UTC
Created attachment 648997 [details]
File: type

Comment 2 gregorymorelo 2012-11-21 03:06:27 UTC
Created attachment 648998 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2012-11-21 10:52:58 UTC

*** This bug has been marked as a duplicate of bug 665665 ***

Comment 4 Daniel Walsh 2012-11-21 10:54:07 UTC
The alert tells you what to do.