Bug 1371318 - SELinux is preventing wine-preloader from 'mmap_zero' accesses on the memprotect Unknown.
Summary: SELinux is preventing wine-preloader from 'mmap_zero' accesses on the memprot...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 23
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0c2cc03a86c05163d29badd2cb3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-29 22:17 UTC by Fabio Feria
Modified: 2016-08-30 11:22 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-30 11:22:51 UTC
Type: ---


Attachments (Terms of Use)

Description Fabio Feria 2016-08-29 22:17:55 UTC
Description of problem:
SELinux is preventing wine-preloader from 'mmap_zero' accesses on the memprotect Unknown.

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

If no cree que wine-preloader debería necesitar realizar un mmap sobre la baja memoria en el kernel.
Then podría estar siendo víctima de un ataque, este es un acceso muy peligroso.
Do
póngase en contacto con su administrador de seguridad e informe de este problema.

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

If quiere allow mmap to low allowed
Then debe informar a SELinux de ésto activando el booleano 'mmap_low_allowed'.
Puede leer la página de manual 'None' para más detalles.
Do
setsebool -P mmap_low_allowed 1

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

If cree que de manera predeterminada, wine-preloader debería permitir acceso mmap_zero sobre Unknown memprotect.     
Then debería reportar esto como un error.
Puede generar un módulo de política local para permitir este acceso.
Do
allow this access for now by executing:
# ausearch -c 'wine-preloader' --raw | audit2allow -M my-winepreloader
# semodule -X 300 -i my-winepreloader.pp

Additional Information:
Source Context                system_u:system_r:unconfined_service_t:s0
Target Context                system_u:system_r:unconfined_service_t:s0
Target Objects                Unknown [ memprotect ]
Source                        wine-preloader
Source Path                   wine-preloader
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-158.21.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.6.7-200.fc23.x86_64 #1 SMP Wed
                              Aug 17 14:24:53 UTC 2016 x86_64 x86_64
Alert Count                   5
First Seen                    2016-08-29 17:15:11 COT
Last Seen                     2016-08-29 17:15:11 COT
Local ID                      930f725d-6ffb-40dc-81ff-16477363b6ca

Raw Audit Messages
type=AVC msg=audit(1472508911.323:268): avc:  denied  { mmap_zero } for  pid=2710 comm="wine-preloader" scontext=system_u:system_r:unconfined_service_t:s0 tcontext=system_u:system_r:unconfined_service_t:s0 tclass=memprotect permissive=0


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

Version-Release number of selected component:
selinux-policy-3.13.1-158.21.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.6.7-200.fc23.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2016-08-30 11:22:51 UTC
This issue is connected to wine and playing games. Closing as WONTFIX.
If you would like to fix it, report it on wine component. Thanks.


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