Bug 974037 - SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19.x86_64/jre/bin/java from 'unlink' accesses on the sock_file socket-4705-1804289383.
Summary: SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19.x86_64/jre/bin...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9b115b46eb40321fd76fee745a1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-13 10:34 UTC by samon007
Modified: 2013-07-04 09:24 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-04 09:24:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description samon007 2013-06-13 10:34:52 UTC
Description of problem:
SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19.x86_64/jre/bin/java from 'unlink' accesses on the sock_file socket-4705-1804289383.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that java should be allowed unlink access on the socket-4705-1804289383 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                unconfined_u:object_r:xdm_tmp_t:s0
Target Objects                socket-4705-1804289383 [ sock_file ]
Source                        java
Source Path                   /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19.x86_64/jr
                              e/bin/java
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xulrunner-21.0-4.fc17.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-169.fc17.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.13-100.fc17.x86_64 #1 SMP Mon
                              May 13 13:36:17 UTC 2013 x86_64 x86_64
Alert Count                   10
First Seen                    2013-06-06 10:19:39 CEST
Last Seen                     2013-06-13 12:10:50 CEST
Local ID                      ad05a35c-3557-492d-bdf6-2b13848cdbf1

Raw Audit Messages
type=AVC msg=audit(1371118250.202:310): avc:  denied  { unlink } for  pid=4705 comm="plugin-containe" name="socket-4705-1804289383" dev="dm-1" ino=161913 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:xdm_tmp_t:s0 tclass=sock_file


type=SYSCALL msg=audit(1371118250.202:310): arch=x86_64 syscall=unlink success=no exit=EACCES a0=7fb9bad0c280 a1=7fff6e2de180 a2=7fff6e2de180 a3=0 items=0 ppid=2022 pid=4705 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=2 tty=(none) comm=plugin-containe exe=/usr/lib64/xulrunner/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: java,mozilla_plugin_t,xdm_tmp_t,sock_file,unlink

audit2allow

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t xdm_tmp_t:sock_file unlink;

audit2allow -R

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t xdm_tmp_t:sock_file unlink;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.13-100.fc17.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-06-14 05:53:12 UTC
Did everything work? Are you able to reproduce it?

Comment 2 Fedora End Of Life 2013-07-04 00:58:14 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.


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