Bug 1245881 - SELinux is preventing plugin-containe from name_connect access on the tcp_socket port 9875.
Summary: SELinux is preventing plugin-containe from name_connect access on the tcp_soc...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alexander Kurtakov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-23 04:53 UTC by Paulim_hed
Modified: 2015-07-28 13:19 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-28 13:19:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 2 0 None None None Never
Mozilla Foundation 2 0 None None None Never

Description Paulim_hed 2015-07-23 04:53:35 UTC
Description of problem:


SELinux is preventing plugin-containe from name_connect access on the tcp_socket port 9875.

*****  Plugin mozplugger (89.7 confidence) suggests   ************************

If você deseja usar o pacote plugin
Then você deve desligar os controles SELinux nos plugins do Firefox.
Do
# setsebool -P unconfined_mozilla_plugin_transition 0

*****  Plugin catchall_boolean (10.0 confidence) suggests   ******************

If você deseja allow mozilla to plugin can network connect
Then você deve informar o SELinux sobre isso habilitando o booleano 'mozilla_plugin_can_network_connect'.
Você pode ler a man page 'None' para mais detalhes.
Do
setsebool -P mozilla_plugin_can_network_connect 1

*****  Plugin catchall (1.69 confidence) suggests   **************************

If você acredita que o plugin-containe deva ser permitido acesso de name_connect em port 9875 tcp_socket  por default.
Then você precisa reportar este como um erro.
Você pode gerar um módulo de política local para permitir este acesso.
Do
permitir este acesso agora executando:
# 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:sap_port_t:s0
Target Objects                port 9875 [ tcp_socket ]
Source                        plugin-containe
Source Path                   plugin-containe
Port                          9875
Host                          localhost.localdomain
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-128.6.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     localhost.localdomain
Platform                      Linux localhost.localdomain 4.0.8-300.fc22.x86_64
                              #1 SMP Fri Jul 10 21:04:56 UTC 2015 x86_64 x86_64
Alert Count                   4
First Seen                    2015-07-21 18:35:27 BRT
Last Seen                     2015-07-22 18:55:23 BRT
Local ID                      0d5b2b41-3c01-416c-943b-f3d34958ee70

Raw Audit Messages
type=AVC msg=audit(1437602123.907:610): avc:  denied  { name_connect } for  pid=4824 comm="plugin-containe" dest=9875 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sap_port_t:s0 tclass=tcp_socket permissive=1


Hash: plugin-containe,mozilla_plugin_t,sap_port_t,tcp_socket,name_connect

Comment 1 Roland Grunberg 2015-07-23 13:33:19 UTC
This doesn't seem related at all to cbi-plugins (or Eclipse), so I'm changing component to 'selinux' (although this could just easily be placed under 'firefox' ). Bug 911703 and Bug 1110355 seem quite similar, so I would think you need to state what plugin is attempting to use that port.

Comment 2 Lukas Vrabec 2015-07-28 13:19:22 UTC
*****  Plugin catchall_boolean (10.0 confidence) suggests   ******************

If você deseja allow mozilla to plugin can network connect
Then você deve informar o SELinux sobre isso habilitando o booleano 'mozilla_plugin_can_network_connect'.
Você pode ler a man page 'None' para mais detalhes.
Do
setsebool -P mozilla_plugin_can_network_connect 1


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