Bug 787924 - SELinux is preventing /usr/bin/wine-preloader from 'search' accesses on the None /proc/<pid>/sessionid.
Summary: SELinux is preventing /usr/bin/wine-preloader from 'search' accesses on the N...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f8dd00fc9bc7279dff1b17e3501...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-07 03:29 UTC by Ali Rohman
Modified: 2012-02-07 09:47 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-07 09:47:08 UTC
Type: ---


Attachments (Terms of Use)

Description Ali Rohman 2012-02-07 03:29:17 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.3-2.fc16.i686
reason:         SELinux is preventing /usr/bin/wine-preloader from 'search' accesses on the None /proc/<pid>/sessionid.
time:           Tue 07 Feb 2012 10:30:33 AM WIT

description:
:SELinux is preventing /usr/bin/wine-preloader from 'search' accesses on the None /proc/<pid>/sessionid.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that wine-preloader should be allowed search access on the sessionid <Unknown> 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                /proc/<pid>/sessionid [ None ]
:Source                        wine-preloader
:Source Path                   /usr/bin/wine-preloader
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           wine-core-1.4-0.2.rc2.fc16.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.3-2.fc16.i686 #1 SMP Fri Feb 3
:                              20:06:02 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    Tue 07 Feb 2012 10:11:45 AM WIT
:Last Seen                     Tue 07 Feb 2012 10:11:45 AM WIT
:Local ID                      2c8d9f99-5c8c-471f-b30c-6f8943a42563
:
:Raw Audit Messages
:type=AVC msg=audit(1328584305.37:55): avc:  denied  { search } for  pid=842 comm="systemd-logind" name="1921" dev=proc ino=21434 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:system_r:devicekit_power_t:s0-s0:c0.c1023 tclass=dirnode=(removed) type=AVC msg=audit(1328584305.037:56): avc:  denied  { read } for  pid=842 comm="systemd-logind" name="sessionid" dev=proc ino=21452 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:system_r:devicekit_power_t:s0-s0:c0.c1023 tclass=filenode=(removed) type=AVC msg=audit(1328584305.037:57): avc:  denied  { open } for  pid=842 comm="systemd-logind" name="sessionid" dev=proc ino=21452 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:system_r:devicekit_power_t:s0-s0:c0.c1023 tclass=filenode=(removed) type=AVC msg=audit(1328584305.037:58): avc:  denied  { getattr } for  pid=842 comm="systemd-logind" path="/proc/1921/sessionid" dev=proc ino=21452 scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:system_r:devicekit_power_t:s0-s0:c0.c1023 tclass=filenode=(removed) type=AVC msg=audit(1328585354.230:100): avc:  denied  { mmap_zero } for  pid=3072 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=memprotectnode=(removed) type=SYSCALL msg=audit(1328585354.230:100): arch=40000003 syscall=90 success=no exit=-1 a0=bfe7a798 a1=0 a2=bfe7a798 a3=0 items=0 ppid=1832 pid=3072 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=1 comm="wine-preloader" exe="/usr/bin/wine-preloader" subj=unconfined_u:unconfined_r:wine_t:s0-s0:c0.c1023 key=(null)
:
:
:Hash: wine-preloader,wine_t,wine_t,None,search
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-02-07 09:46:16 UTC
Related to wine:

$ sealert -a /tmp/wine.log


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

*****  Plugin mmap_zero (91.4 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 (9.59 confidence) suggests  ***************************

If you believe that wine-preloader should be allowed mmap_zero access on the  <Unknown> 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

Comment 2 Miroslav Grepl 2012-02-07 09:47:08 UTC
systemd-logind  issue is going to be fixed.


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