Bug 799117 - flash-plugin-11.2(beta) denials
flash-plugin-11.2(beta) denials
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2012-03-01 14:51 EST by Rex Dieter
Modified: 2012-03-01 16:18 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-03-01 16:18:25 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Rex Dieter 2012-03-01 14:51:22 EST
firefox hangs/crashes when trying to use flash-plugin-11.2(beta,pre?),

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.
# /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.
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
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 16:18:25 EST
The setroubleshoot told you what to do, you have a mislabeled file, run restorecon on it.

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