Bug 1003245 - SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'read' accesses on the file cookie.
Summary: SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'read' acces...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:5694b0ef85b3c986e23e6993f3a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-01 09:26 UTC by Boricua
Modified: 2013-10-24 17:57 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-24 17:57:38 UTC
Type: ---


Attachments (Terms of Use)

Description Boricua 2013-09-01 09:26:46 UTC
Description of problem:
SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'read' accesses on the file cookie.

*****  Plugin mozplugger (99.1 confidence) suggests  *************************

If you want to use the plugin package
Then you must turn off SELinux controls on the Firefox plugins.
Do
# setsebool -P unconfined_mozilla_plugin_transition 0

*****  Plugin catchall (1.81 confidence) suggests  ***************************

If you believe that plugin-container should be allowed read access on the cookie 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:var_run_t:s0
Target Objects                cookie [ file ]
Source                        plugin-containe
Source Path                   /usr/lib64/xulrunner/plugin-container
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xulrunner-23.0.1-1.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-73.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.10.9-200.fc19.x86_64 #1 SMP Wed
                              Aug 21 19:27:58 UTC 2013 x86_64 x86_64
Alert Count                   9
First Seen                    2013-08-31 18:30:43 AST
Last Seen                     2013-08-31 18:46:53 AST
Local ID                      c8ef7df9-e388-4c90-a6f3-ca2e68abd489

Raw Audit Messages
type=AVC msg=audit(1377989213.797:585): avc:  denied  { read } for  pid=5244 comm="plugin-containe" name="cookie" dev="dm-0" ino=74999 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_run_t:s0 tclass=file


type=SYSCALL msg=audit(1377989213.797:585): arch=x86_64 syscall=open success=no exit=EACCES a0=7effd1224550 a1=0 a2=fffffffffffffff3 a3=7effc7f0c040 items=0 ppid=5145 pid=5244 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=plugin-containe exe=/usr/lib64/xulrunner/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: plugin-containe,mozilla_plugin_t,var_run_t,file,read

Additional info:
reporter:       libreport-2.1.6
hashmarkername: setroubleshoot
kernel:         3.10.9-200.fc19.x86_64
type:           libreport

Comment 3 Daniel Walsh 2013-09-04 14:10:25 UTC
Where is the cookie directory in /var/run?

find /run -name cookie


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