Bug 982396 - SELinux is preventing /usr/java/jdk1.7.0_25/jre/bin/java from 'name_connect' accesses on the tcp_socket .
SELinux is preventing /usr/java/jdk1.7.0_25/jre/bin/java from 'name_connect' ...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
19
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:230fe39c3a207527cc7b8ed6687...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-08 18:44 EDT by Vadim
Modified: 2013-07-09 17:24 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-07-09 17:24:22 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Vadim 2013-07-08 18:44:20 EDT
Description of problem:
Create subtunnel to Fortinel Firewall
SELinux is preventing /usr/java/jdk1.7.0_25/jre/bin/java from 'name_connect' accesses on the tcp_socket .

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

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

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

If you want to allow mozilla plugin domain to connect to the network using TCP.
Then you must tell SELinux about this by enabling the 'mozilla_plugin_can_network_connect' boolean.
You can read 'mozilla_selinux' man page for more details.
Do
setsebool -P mozilla_plugin_can_network_connect 1

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

If you believe that java should be allowed name_connect 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 java /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:pki_kra_port_t:s0
Target Objects                 [ tcp_socket ]
Source                        java
Source Path                   /usr/java/jdk1.7.0_25/jre/bin/java
Port                          10443
Host                          (removed)
Source RPM Packages           jdk-1.7.0_25-fcs.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-59.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.9-301.fc19.x86_64 #1 SMP Thu
                              Jul 4 15:10:36 UTC 2013 x86_64 x86_64
Alert Count                   4
First Seen                    2013-07-08 23:41:19 IST
Last Seen                     2013-07-08 23:41:19 IST
Local ID                      332f2ba2-cc18-47a5-a2d4-0cb56246e290

Raw Audit Messages
type=AVC msg=audit(1373323279.325:644): avc:  denied  { name_connect } for  pid=6814 comm="java" dest=10443 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:pki_kra_port_t:s0 tclass=tcp_socket


type=SYSCALL msg=audit(1373323279.325:644): arch=x86_64 syscall=connect success=no exit=EACCES a0=17 a1=7f496c27a0b0 a2=1c a3=0 items=0 ppid=6742 pid=6814 auid=7001 uid=7001 gid=7001 euid=7001 suid=7001 fsuid=7001 egid=7001 sgid=7001 fsgid=7001 ses=1 tty=(none) comm=java exe=/usr/java/jdk1.7.0_25/jre/bin/java subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: java,mozilla_plugin_t,pki_kra_port_t,tcp_socket,name_connect

Additional info:
reporter:       libreport-2.1.5
hashmarkername: setroubleshoot
kernel:         3.9.9-301.fc19.x86_64
type:           libreport
Comment 1 Daniel Walsh 2013-07-09 17:24:22 EDT
The alert tells you what to 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.