Bug 1076128 - SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.5.1.fc20.x86_64/jre-abrt/bin/java from 'write' accesses on the sock_file .
Summary: SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.5.1.fc20.x...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c33dbe72480304eabb3e489075c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-13 15:43 UTC by Jakub Filak
Modified: 2016-12-01 00:46 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-3.12.1-149.fc20
Clone Of:
Environment:
Last Closed: 2014-04-09 13:22:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jakub Filak 2014-03-13 15:43:02 UTC
Description of problem:
When abrt-java-connector is installed uncaught Java exceptions are reported to abrtd. The reporting process works as for other types of detected problems such as uncaught Python exceptions, Java process writes a description of an uncaught exception to /var/run/abrt/abrt.socket. This AVC was generated because icedtea-web (web browser plugin which runs Java applets) tried to report an uncaught exception. The Java applet which caused the uncaught exception lives at http://www.arcadeflex.com/releases/v0.36.4/launch.php?id=134

SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.5.1.fc20.x86_64/jre-abrt/bin/java from 'write' accesses on the sock_file .

*****  Plugin mozplugger (99.1 confidence) suggests   ************************

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

*****  Plugin catchall (1.81 confidence) suggests   **************************

If you believe that java should be allowed write access on the  sock_file 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:abrt_var_run_t:s0
Target Objects                 [ sock_file ]
Source                        java
Source Path                   /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.5.1.f
                              c20.x86_64/jre-abrt/bin/java
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           java-1.7.0-openjdk-
                              headless-1.7.0.60-2.4.5.1.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-127.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.13.6-200.fc20.x86_64 #1 SMP Fri
                              Mar 7 17:02:28 UTC 2014 x86_64 x86_64
Alert Count                   4
First Seen                    2014-03-13 14:08:22 CET
Last Seen                     2014-03-13 16:10:03 CET
Local ID                      9bbaf869-5ce3-43d2-a962-81e9892570e4

Raw Audit Messages
type=AVC msg=audit(1394723403.603:434): avc:  denied  { write } for  pid=1924 comm="java" name="abrt.socket" dev="tmpfs" ino=22214 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:abrt_var_run_t:s0 tclass=sock_file


type=SYSCALL msg=audit(1394723403.603:434): arch=x86_64 syscall=connect success=no exit=EACCES a0=2e a1=7f5aebefd900 a2=6e a3=7f5aebefd6b0 items=0 ppid=1871 pid=1924 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=2 tty=(none) comm=java exe=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.5.1.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,abrt_var_run_t,sock_file,write

Additional info:
reporter:       libreport-2.2.0
hashmarkername: setroubleshoot
kernel:         3.13.6-200.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-03-14 06:43:30 UTC
commit f1ff77536d602e2b8973d98e7e27d9e13493b4f2
Author: Miroslav Grepl <mgrepl>
Date:   Fri Mar 14 07:43:14 2014 +0100

    Make  abrt-java-connector working

Comment 2 Fedora Update System 2014-03-31 14:05:30 UTC
selinux-policy-3.12.1-149.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-149.fc20

Comment 3 Jose Mendoza 2014-03-31 21:55:19 UTC
Description of problem:
I am trying to launch juniper vpn and keep getting error when I launch IceTea

Please ensure that necessary 32 bit libraries are installed. For more details, refer KB article KB25230 Do you want to continue ?

kb no longer exist and I have tried installing 32 bit version of Java but not having luck getting this to work.

Additional info:
reporter:       libreport-2.2.0
hashmarkername: setroubleshoot
kernel:         3.13.7-200.fc20.x86_64
type:           libreport

Comment 4 Fedora Update System 2014-04-02 09:03:38 UTC
Package selinux-policy-3.12.1-149.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-149.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-4604/selinux-policy-3.12.1-149.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-04-09 13:22:00 UTC
selinux-policy-3.12.1-149.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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