Bug 692851 - SELinux is preventing /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/bin/java from 'getattr' accesses on the file /proc/<pid>/net/if_inet6.
Summary: SELinux is preventing /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/bin/java...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:af4433767cf...
: 692855 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-01 12:05 UTC by Vít Ondruch
Modified: 2011-05-17 15:58 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-17 15:58:50 UTC
Type: ---


Attachments (Terms of Use)

Description Vít Ondruch 2011-04-01 12:05:38 UTC
SELinux is preventing /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/bin/java from 'getattr' accesses on the file /proc/<pid>/net/if_inet6.

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

If you believe that java should be allowed getattr 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                /proc/<pid>/net/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                      faabdf77-516e-4c24-8299-c5a6d343c0fa

Raw Audit Messages
type=AVC msg=audit(1301659265.300:151): avc:  denied  { getattr } for  pid=7133 comm="java" path="/proc/7101/net/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:151): arch=x86_64 syscall=fstat success=yes exit=0 a0=16 a1=7f17fd67e640 a2=7f17fd67e640 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,getattr

audit2allow

#============= mock_t ==============
allow mock_t proc_net_t:file getattr;

audit2allow -R

#============= mock_t ==============
allow mock_t proc_net_t:file getattr;

Comment 1 Daniel Walsh 2011-04-01 12:56:38 UTC
Fixed in selinux-policy-3.9.16-10.fc15

Comment 2 Daniel Walsh 2011-04-01 12:57:40 UTC
*** Bug 692855 has been marked as a duplicate of this bug. ***


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