Bug 672408 - SELinux is preventing /opt/picasa/wine/bin/wine-preloader from 'mmap_zero' accesses on the memprotect Unknown.
Summary: SELinux is preventing /opt/picasa/wine/bin/wine-preloader from 'mmap_zero' ac...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:cf552c478bf...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-25 03:24 UTC by RVV
Modified: 2012-07-21 05:20 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-25 08:58:26 UTC
Type: ---


Attachments (Terms of Use)

Description RVV 2011-01-25 03:24:55 UTC
SELinux is preventing /opt/picasa/wine/bin/wine-preloader from 'mmap_zero' accesses on the memprotect Unknown.

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

If you do not think /opt/picasa/wine/bin/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 Unknown 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_execmem_t:s0-
                              s0:c0.c1023
Target Context                unconfined_u:unconfined_r:unconfined_execmem_t:s0-
                              s0:c0.c1023
Target Objects                Unknown [ memprotect ]
Source                        wine-preloader
Source Path                   /opt/picasa/wine/bin/wine-preloader
Port                          <Неизвестно>
Host                          (removed)
Source RPM Packages           picasa-2.7.3736-15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-19.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.10-74.fc14.i686
                              #1 SMP Thu Dec 23 16:17:40 UTC 2010 i686 i686
Alert Count                   15
First Seen                    Пнд 10 Янв 2011 10:38:29
Last Seen                     Пнд 10 Янв 2011 10:40:59
Local ID                      b3d0cf68-b6ed-4fb5-81c1-c715fd0a4ced

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

wine-preloader,unconfined_execmem_t,unconfined_execmem_t,memprotect,mmap_zero
type=SYSCALL msg=audit(1294630859.260:30985): arch=i386 syscall=mmap success=no exit=EACCES a0=bfc946f0 a1=bfc946f0 a2=5a a3=7c002780 items=0 ppid=10983 pid=11227 auid=501 uid=501 gid=501 euid=501 suid=501 fsuid=501 egid=501 sgid=501 fsgid=501 tty=(none) ses=1 comm=wine-preloader exe=/opt/picasa/wine/bin/wine-preloader subj=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 key=(null)
wine-preloader,unconfined_execmem_t,unconfined_execmem_t,memprotect,mmap_zero

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

allow unconfined_execmem_t self:memprotect mmap_zero;

Comment 1 Miroslav Grepl 2011-01-25 08:58:26 UTC
If you want to run wine apps that need mmap_zero, you need to turn on the
boolean
As described in the alert.

#setsebool -P mmap_low_allowed 1


Note You need to log in before you can comment on or make changes to this bug.