Bug 1259268 - SELinux is preventing /usr/lib64/firefox/plugin-container from 'name_bind' accesses on the udp_socket port 5000.
Summary: SELinux is preventing /usr/lib64/firefox/plugin-container from 'name_bind' ac...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b27ac6effbc1b4d6049621b3dec...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-02 10:27 UTC by Rupesh Patel
Modified: 2015-09-02 14:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-02 14:48:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Rupesh Patel 2015-09-02 10:27:27 UTC
Description of problem:
During use of bluejeans 
SELinux is preventing /usr/lib64/firefox/plugin-container from 'name_bind' accesses on the udp_socket port 5000.

*****  Plugin mozplugger (82.0 confidence) suggests   ************************

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

*****  Plugin catchall_boolean (9.19 confidence) suggests   ******************

If you want to allow mozilla to plugin bind unreserved ports
Then you must tell SELinux about this by enabling the 'mozilla_plugin_bind_unreserved_ports' boolean.
You can read 'None' man page for more details.
Do
setsebool -P mozilla_plugin_bind_unreserved_ports 1

*****  Plugin catchall_boolean (9.19 confidence) suggests   ******************

If you want to allow mozilla to plugin use bluejeans
Then you must tell SELinux about this by enabling the 'mozilla_plugin_use_bluejeans' boolean.
You can read 'None' man page for more details.
Do
setsebool -P mozilla_plugin_use_bluejeans 1

*****  Plugin catchall (1.58 confidence) suggests   **************************

If you believe that plugin-container should be allowed name_bind access on the port 5000 udp_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:commplex_main_port_t:s0
Target Objects                port 5000 [ udp_socket ]
Source                        plugin-containe
Source Path                   /usr/lib64/firefox/plugin-container
Port                          5000
Host                          (removed)
Source RPM Packages           firefox-40.0-4.fc22.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-128.10.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.1.5-200.fc22.x86_64 #1 SMP Mon
                              Aug 10 23:38:23 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-09-02 14:44:33 IST
Last Seen                     2015-09-02 14:44:33 IST
Local ID                      7a85d54a-06d7-43e1-ba9e-368f2a181f4b

Raw Audit Messages
type=AVC msg=audit(1441185273.883:626): avc:  denied  { name_bind } for  pid=5536 comm="plugin-containe" src=5000 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:commplex_main_port_t:s0 tclass=udp_socket permissive=0


type=SYSCALL msg=audit(1441185273.883:626): arch=x86_64 syscall=bind success=no exit=EACCES a0=2a a1=7fe61fffb4a0 a2=10 a3=304397f9c0 items=0 ppid=5412 pid=5536 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/firefox/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: plugin-containe,mozilla_plugin_t,commplex_main_port_t,udp_socket,name_bind

Version-Release number of selected component:
selinux-policy-3.13.1-128.10.fc22.noarch

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.1.5-200.fc22.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2015-09-02 14:48:45 UTC
*****  Plugin catchall_boolean (9.19 confidence) suggests   ******************

If you want to allow mozilla to plugin use bluejeans
Then you must tell SELinux about this by enabling the 'mozilla_plugin_use_bluejeans' boolean.
You can read 'None' man page for more details.
Do
setsebool -P mozilla_plugin_use_bluejeans 1


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