| Summary: | SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc20.x86_64/jre-abrt/bin/java from 'name_bind' accesses on the tcp_socket . | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Heiko Adams <bugzilla> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED CANTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | bugzilla, dominick.grift, dwalsh, lvrabec, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:e315e632bdd542b11816fbad8ce94b2c5dcb1c7220acb876957aaa706231bbfd | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-01-06 13:45:24 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Is this a default port? Or did you setup it? ***** Plugin bind_ports (54.8 confidence) suggests ************************ If you want to allow /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc20.x86_64/jre-abrt/bin/java to bind to network port 9889 Then you need to modify the port type. Do # semanage port -a -t jboss_debug_port_t -p tcp 9889 ***** Plugin mozplugger (41.2 confidence) suggests ************************ If sie das plugin-Paket benutzen möchten Then sie müssen die SELinux-Überwachung der Firefox-Plugins ausschalten. Do # setsebool -P unconfined_mozilla_plugin_transition 0 I didn't setup anything on this so it seems to be the default port. But maybe someone who's more familiar with JBoss can give a more exact answer. Google has told me nothing about a relationship between jboss and this port. You can label this port 9889 as jboss port. # semanage port -a -t jboss_debug_port_t -p tcp 9889 To stop the AVC from happening. Are you using jboss? No, this happen when I was trying to upload some photos to an online-photo service which uses an java applet for the uploader. Ok Does it always use the same port? You can turn off the protection by doing. # setsebool -P unconfined_mozilla_plugin_transition 0 AFAIR on that site yes Only definitions of this tcp port is Port for Cable network related data proxy or repeater EMC2 (Legato) Networker or Sun Solcitice Backup (Official) Which I doubt has any relationship to what you are doing. |
Description of problem: SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc20.x86_64/jre-abrt/bin/java from 'name_bind' accesses on the tcp_socket . ***** Plugin bind_ports (54.8 confidence) suggests ************************ If you want to allow /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc20.x86_64/jre-abrt/bin/java to bind to network port 9889 Then you need to modify the port type. Do # semanage port -a -t jboss_debug_port_t -p tcp 9889 ***** Plugin mozplugger (41.2 confidence) suggests ************************ If sie das plugin-Paket benutzen möchten Then sie müssen die SELinux-Überwachung der Firefox-Plugins ausschalten. Do # setsebool -P unconfined_mozilla_plugin_transition 0 ***** Plugin catchall_boolean (4.84 confidence) suggests ****************** If sie folgendes tun möchten: allow nis to enabled Then sie müssen SELinux darüber benachrichtigen, indem Sie die boolesche Variable »nis_enabled« aktivieren. Für weitere Einzelheiten, können Sie die »None« man-Seiten konsultieren. Do setsebool -P nis_enabled 1 ***** Plugin catchall (1.04 confidence) suggests ************************** If sie denken, dass es java standardmässig erlaubt sein sollte, name_bind Zugriff auf tcp_socket zu erhalten. Then sie sollten dies als Fehler melden. Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen. Do zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen: # 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:unreserved_port_t:s0 Target Objects [ tcp_socket ] Source java Source Path /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.3.0.f c20.x86_64/jre-abrt/bin/java Port 9889 Host (removed) Source RPM Packages java-1.7.0-openjdk- headless-1.7.0.60-2.4.3.0.fc20.x86_64 Target RPM Packages Policy RPM selinux-policy-3.12.1-105.fc20.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 3.11.9-300.fc20.x86_64 #1 SMP Wed Nov 20 22:23:25 UTC 2013 x86_64 x86_64 Alert Count 2 First Seen 2013-12-06 00:21:34 CET Last Seen 2013-12-06 00:21:35 CET Local ID 868a8d0b-3b82-4098-b108-6dab49e6d3a7 Raw Audit Messages type=AVC msg=audit(1386285695.316:722): avc: denied { name_bind } for pid=7995 comm="java" src=9889 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=tcp_socket type=SYSCALL msg=audit(1386285695.316:722): arch=x86_64 syscall=bind success=no exit=EACCES a0=2e a1=7fb1acda1620 a2=1c a3=1dc items=0 ppid=7667 pid=7995 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=java exe=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc20.x86_64/jre-abrt/bin/java subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null) Hash: java,mozilla_plugin_t,unreserved_port_t,tcp_socket,name_bind Additional info: reporter: libreport-2.1.9 hashmarkername: setroubleshoot kernel: 3.11.9-300.fc20.x86_64 type: libreport