Bug 1245881

Summary: SELinux is preventing plugin-containe from name_connect access on the tcp_socket port 9875.
Product: [Fedora] Fedora Reporter: Paulim_hed <paulim.hardware>
Component: selinux-policyAssignee: Alexander Kurtakov <akurtako>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: akurtako, dominick.grift, dwalsh, eclipse-sig, gecko-bugs-nobody, jhorak, krzysztof.daniel, lvrabec, mgrepl, pjasicek, plautrba, rgrunber
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-28 13:19:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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