Bug 842047 - SELinux is preventing /home/mikhail/Downloads/navicat101_premium_en/wine/bin/wineserver from using the 'ptrace' accesses on a process.
Summary: SELinux is preventing /home/mikhail/Downloads/navicat101_premium_en/wine/bin/...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:52db4188d985289100b74341580...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-21 10:01 UTC by Mikhail
Modified: 2012-07-23 14:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-23 14:45:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2012-07-21 10:01:58 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.6-2.fc17.i686.PAE
time:           Сб. 21 июля 2012 16:01:46

description:
:SELinux is preventing /home/mikhail/Downloads/navicat101_premium_en/wine/bin/wineserver from using the 'ptrace' accesses on a process.
:
:*****  Plugin catchall_boolean (89.3 confidence) suggests  *******************
:
:If you want to allow sysadm to debug or ptrace all processes.
:Then you must tell SELinux about this by enabling the 'deny_ptrace' boolean.You can read 'unconfined_selinux' man page for more details.
:Do
:setsebool -P deny_ptrace 0
:
:*****  Plugin catchall (11.6 confidence) suggests  ***************************
:
:If you believe that wineserver should be allowed ptrace access on processes labeled unconfined_t 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 wineserver /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                 [ process ]
:Source                        wineserver
:Source Path                   /home/mikhail/Downloads/navicat101_premium_en/wine
:                              /bin/wineserver
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           opera-next-12.50-1513.i386
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-140.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.4.6-2.fc17.i686.PAE #1 SMP Thu Jul 19
:                              21:49:03 UTC 2012 i686 i686
:Alert Count                   5
:First Seen                    Пт. 13 июля 2012 01:35:36
:Last Seen                     Сб. 21 июля 2012 16:01:11
:Local ID                      8d2b2f9e-ce13-4a2b-9da7-2a48a1fe1060
:
:Raw Audit Messages
:type=AVC msg=audit(1342864871.564:86): avc:  denied  { ptrace } for  pid=4337 comm="opera-next" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=process
:
:
:type=SYSCALL msg=audit(1342864871.564:86): arch=i386 syscall=ptrace success=no exit=EACCES a0=10 a1=10e5 a2=0 a3=0 items=0 ppid=1 pid=4337 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=opera-next exe=/usr/lib/opera-next/opera-next subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)
:
:Hash: wineserver,unconfined_t,unconfined_t,process,ptrace
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Daniel Walsh 2012-07-23 14:45:09 UTC
You have deny_ptrace boolean turned on, so apps are not allowed to ptrace other apps. Looks like opera is doing something wierd, and is denied.  If you do not see any breakage in opera, I would just add a dontaudit for this access or ignore.

If you see breakage and want opera to work, you will need to disable deny_ptrace boolean.

You could also ask opera what it is doing to cause this access.


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