Bug 1121547

Summary: SELinux is preventing /usr/lib64/firefox/plugin-container from 'name_bind' accesses on the tcp_socket .
Product: [Fedora] Fedora Reporter: Ronen Hod <rhod>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, knoel, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e2e8266fc11ab3efbb9daa2bd4b0da7afc0a9e68506998eefdea64c9f189ad1f
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-21 09:32:01 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 Ronen Hod 2014-07-21 08:03:59 UTC
Description of problem:
I opened BleuJeans.
SELinux is preventing /usr/lib64/firefox/plugin-container from 'name_bind' accesses on the tcp_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 name_bind access on the  tcp_socket 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:pegasus_https_port_t:s0
Target Objects                 [ tcp_socket ]
Source                        plugin-containe
Source Path                   /usr/lib64/firefox/plugin-container
Port                          5989
Host                          (removed)
Source RPM Packages           firefox-30.0-4.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-176.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.15.5-200.fc20.x86_64 #1 SMP Mon
                              Jul 14 15:40:08 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-07-21 11:02:03 IDT
Last Seen                     2014-07-21 11:02:03 IDT
Local ID                      1fdedd5e-2395-4c2e-b9fd-bf8387d3fa2c

Raw Audit Messages
type=AVC msg=audit(1405929723.756:1265): avc:  denied  { name_bind } for  pid=3555 comm="plugin-containe" src=5989 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:pegasus_https_port_t:s0 tclass=tcp_socket


type=SYSCALL msg=audit(1405929723.756:1265): arch=x86_64 syscall=bind success=no exit=EACCES a0=29 a1=7fd70737b400 a2=10 a3=7fd70737b43c items=0 ppid=7098 pid=3555 auid=16365 uid=16365 gid=16365 euid=16365 suid=16365 fsuid=16365 egid=16365 sgid=16365 fsgid=16365 tty=(none) ses=1 comm=plugin-containe exe=/usr/lib64/firefox/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: plugin-containe,mozilla_plugin_t,pegasus_https_port_t,tcp_socket,name_bind

Additional info:
reporter:       libreport-2.2.2
hashmarkername: setroubleshoot
kernel:         3.15.5-200.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-07-21 09:32:01 UTC
PLease turn the mozilla_plugin_use_bluejeans boolean on.

setsebool -P  mozilla_plugin_use_bluejeans 1