Bug 848377

Summary: SELinux is preventing /usr/bin/gdb from 'open' accesses on the file /usr/lib/mozilla/plugins-wrapped/nswrapper_32_32.libflashplayer.so.
Product: [Fedora] Fedora Reporter: Denis <denismarcello>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA 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:4e257ba7ac2ef284d6958dd8753f67d6dbacdfcb49ba15024bc02beff061eb22
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-27 23:03:27 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:

Description Denis 2012-08-15 13:02:56 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.6-2.fc17.i686
time:           Qua 15 Ago 2012 10:02:35 EDT

description:
:SELinux is preventing /usr/bin/gdb from 'open' accesses on the file /usr/lib/mozilla/plugins-wrapped/nswrapper_32_32.libflashplayer.so.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If você acredita que o gdb deva ser permitido acesso de open em nswrapper_32_32.libflashplayer.so file  por default.
:Then você precisa reportar este como um erro.
:Você pode gerar um módulo de política local para permitir este acesso.
:Do
:permitir este acesso agora executando:
:# grep gdb /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:abrt_t:s0-s0:c0.c1023
:Target Context                unconfined_u:object_r:mozilla_plugin_rw_t:s0
:Target Objects                /usr/lib/mozilla/plugins-
:                              wrapped/nswrapper_32_32.libflashplayer.so [ file ]
:Source                        gdb
:Source Path                   /usr/bin/gdb
:Port                          <Desconhecido>
:Host                          (removed)
:Source RPM Packages           elfutils-0.154-1.fc17.i686
: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 #1 SMP Thu Jul 19
:                              22:15:33 UTC 2012 i686 i686
:Alert Count                   3
:First Seen                    Qua 15 Ago 2012 10:01:48 EDT
:Last Seen                     Qua 15 Ago 2012 10:01:52 EDT
:Local ID                      a783be5f-20f2-4859-8f86-fd4a791fea17
:
:Raw Audit Messages
:type=AVC msg=audit(1345039312.803:76): avc:  denied  { open } for  pid=2635 comm="eu-unstrip" name="nswrapper_32_32.libflashplayer.so" dev="dm-1" ino=524706 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:mozilla_plugin_rw_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1345039312.803:76): arch=i386 syscall=open success=no exit=EACCES a0=9b80508 a1=8000 a2=0 a3=b77c2a7c items=0 ppid=2634 pid=2635 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm=eu-unstrip exe=/usr/bin/eu-unstrip subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null)
:
:Hash: gdb,abrt_t,mozilla_plugin_rw_t,file,open
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Daniel Walsh 2012-08-15 18:08:31 UTC
Well abrt should not be really looking at this file, since we do not ship flashplugin.

Added allow rules to F18.

Comment 2 Fedora Update System 2012-08-20 13:09:37 UTC
selinux-policy-3.10.0-146.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-146.fc17

Comment 3 Fedora Update System 2012-08-21 09:50:21 UTC
Package selinux-policy-3.10.0-146.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-146.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-12355/selinux-policy-3.10.0-146.fc17
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-08-27 23:03:27 UTC
selinux-policy-3.10.0-146.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.