Bug 692855

Summary: SELinux is preventing /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/bin/java from 'read' accesses on the file if_inet6.
Product: [Fedora] Fedora Reporter: Vít Ondruch <vondruch>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 15CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:db6f66014b5209297b1184a17bee5b02501f65102b8539d9281dae547679a007
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-01 12:57:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vít Ondruch 2011-04-01 12:10:57 UTC
SELinux is preventing /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/bin/java from 'read' accesses on the file if_inet6.

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

If you believe that java should be allowed read access on the if_inet6 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:mock_t:s0-s0:c0.c1023
Target Context                system_u:object_r:proc_net_t:s0
Target Objects                if_inet6 [ file ]
Source                        java
Source Path                   /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/bin
                              /java
Port                          <Neznámé>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-6.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.38-1.fc15.x86_64 #1 SMP Tue Mar 15 05:29:00
                              UTC 2011 x86_64 x86_64
Alert Count                   3
First Seen                    Pá 1. duben 2011, 13:40:29 CEST
Last Seen                     Pá 1. duben 2011, 14:01:05 CEST
Local ID                      13f61055-cab5-4f16-b0ca-b1d07d34421b

Raw Audit Messages
type=AVC msg=audit(1301659265.300:150): avc:  denied  { read } for  pid=7133 comm="java" name="if_inet6" dev=proc ino=4026532158 scontext=unconfined_u:unconfined_r:mock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_net_t:s0 tclass=file


type=AVC msg=audit(1301659265.300:150): avc:  denied  { open } for  pid=7133 comm="java" name="if_inet6" dev=proc ino=4026532158 scontext=unconfined_u:unconfined_r:mock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_net_t:s0 tclass=file


type=SYSCALL msg=audit(1301659265.300:150): arch=x86_64 syscall=open success=yes exit=EINVAL a0=7f17f9236038 a1=0 a2=1b6 a3=7f17fd67e530 items=0 ppid=7100 pid=7133 auid=500 uid=500 gid=488 euid=500 suid=500 fsuid=500 egid=488 sgid=488 fsgid=488 tty=pts0 ses=1 comm=java exe=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/bin/java subj=unconfined_u:unconfined_r:mock_t:s0-s0:c0.c1023 key=(null)

Hash: java,mock_t,proc_net_t,file,read

audit2allow

#============= mock_t ==============
allow mock_t proc_net_t:file { read open };

audit2allow -R

#============= mock_t ==============
allow mock_t proc_net_t:file { read open };

Comment 1 Daniel Walsh 2011-04-01 12:57:40 UTC

*** This bug has been marked as a duplicate of bug 692851 ***