Bug 799117

Summary: flash-plugin-11.2(beta) denials
Product: [Fedora] Fedora Reporter: Rex Dieter <rdieter>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-01 21:18:25 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 Rex Dieter 2012-03-01 19:51:22 UTC
firefox hangs/crashes when trying to use flash-plugin-11.2(beta,pre?),
flashplayer11-2_p6_install_lin_64_022712

sealert info data:

SELinux is preventing /usr/lib64/xulrunner-2/plugin-container from execute access on the file /usr/lib64/mozilla/plugins/libflashplayer.so.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/usr/lib64/mozilla/plugins/libflashplayer.so default label should be textrel_shlib_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /usr/lib64/mozilla/plugins/libflashplayer.so

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that plugin-container should be allowed execute access on the libflashplayer.so file 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 plugin-containe /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
                              0.c1023
Target Context                unconfined_u:object_r:etc_runtime_t:s0
Target Objects                /usr/lib64/mozilla/plugins/libflashplayer.so [
                              file ]
Source                        plugin-containe
Source Path                   /usr/lib64/xulrunner-2/plugin-container
Port                          <Unknown>
Host                          localhost.localdomain
Source RPM Packages           xulrunner-10.0.1-3.fc17.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-95.fc17.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     localhost.localdomain
Platform                      Linux localhost.localdomain
                              3.3.0-0.rc4.git1.4.fc17.x86_64 #1 SMP Wed Feb 22
                              01:14:38 UTC 2012 x86_64 x86_64
Alert Count                   3
First Seen                    Thu 01 Mar 2012 01:47:02 PM CST
Last Seen                     Thu 01 Mar 2012 01:47:48 PM CST
Local ID                      f0d9995e-a9c2-487c-b870-a697b7f555af

Raw Audit Messages
type=AVC msg=audit(1330631268.680:188): avc:  denied  { execute } for  pid=11061 comm="plugin-containe" path="/usr/lib64/mozilla/plugins/libflashplayer.so" dev="dm-1" ino=4576 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:etc_runtime_t:s0 tclass=file


type=SYSCALL msg=audit(1330631268.680:188): arch=x86_64 syscall=mmap success=no exit=EACCES a0=0 a1=155bdc8 a2=5 a3=802 items=0 ppid=10684 pid=11061 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=plugin-containe exe=/usr/lib64/xulrunner-2/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: plugin-containe,mozilla_plugin_t,etc_runtime_t,file,execute

audit2allowunable to open /sys/fs/selinux/policy:  Permission denied


audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied

Comment 1 Daniel Walsh 2012-03-01 21:18:25 UTC
The setroubleshoot told you what to do, you have a mislabeled file, run restorecon on it.