Bug 1031806 - SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'write' accesses on the sock_file bumblebee.socket.
Summary: SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'write' acce...
Keywords:
Status: CLOSED DUPLICATE of bug 1028178
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9757d5450345f4280c62798c4f8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-18 20:01 UTC by Zero
Modified: 2013-12-06 14:49 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-12-06 14:49:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Zero 2013-11-18 20:01:31 UTC
Description of problem:
SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'write' accesses on the sock_file bumblebee.socket.

*****  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 write access on the bumblebee.socket sock_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                system_u:object_r:var_run_t:s0
Target Objects                bumblebee.socket [ sock_file ]
Source                        plugin-containe
Source Path                   /usr/lib64/xulrunner/plugin-container
Port                          <Neznámé>
Host                          (removed)
Source RPM Packages           xulrunner-25.0-2.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.13.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.8-200.fc19.x86_64 #1 SMP Wed
                              Nov 13 16:29:59 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-11-18 21:00:50 CET
Last Seen                     2013-11-18 21:00:50 CET
Local ID                      d4aa6884-e7b2-4e02-abad-0bea750443f4

Raw Audit Messages
type=AVC msg=audit(1384804850.377:531): avc:  denied  { write } for  pid=5844 comm="plugin-containe" name="bumblebee.socket" dev="tmpfs" ino=23788 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=sock_file


type=SYSCALL msg=audit(1384804850.377:531): arch=x86_64 syscall=connect success=no exit=EACCES a0=5 a1=7fffb9bb39a0 a2=6e a3=7fffb9bb3740 items=0 ppid=5783 pid=5844 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,sock_file,write

Additional info:
reporter:       libreport-2.1.9
hashmarkername: setroubleshoot
kernel:         3.11.8-200.fc19.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-11-19 06:49:55 UTC
Execute

# setsebool -P unconfined_mozilla_plugin_transition 0

to make this working.

What does

# ps -efZ |grep bumblebee

Comment 2 Zero 2013-11-19 18:59:53 UTC
(In reply to Miroslav Grepl from comment #1)
> Execute
> 
> # setsebool -P unconfined_mozilla_plugin_transition 0
> 
> to make this working.
> 
> What does
> 
> # ps -efZ |grep bumblebee


[zero@Zero ~]$ ps -efZ |grep bumblebee
system_u:system_r:initrc_t:s0   root       422     1  0 19:10 ?        00:00:00 /usr/sbin/bumblebeed
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 zero 4806 4775  0 19:59 pts/1 00:00:00 grep --color=auto bumblebee

Comment 3 Miroslav Grepl 2013-12-06 14:49:06 UTC

*** This bug has been marked as a duplicate of bug 1028178 ***


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