Bug 967708 - SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19.x86_64/jre/bin/java from 'create' accesses on the directory 14.
Summary: SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19.x86_64/jre/bin...
Keywords:
Status: CLOSED DUPLICATE of bug 967378
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:4ffb332e1aa2054f88d8e6c25a3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-28 05:53 UTC by Klaas Zwaan
Modified: 2013-05-28 10:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-28 10:11:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Klaas Zwaan 2013-05-28 05:53:25 UTC
Description of problem:
Start working at my office from home.
Last week it worked just fine. Yesterday I have installed updates for Fedora 17.
SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19.x86_64/jre/bin/java from 'create' accesses on the directory 14.

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

If je denkt dat java standaard create toegang moet hebben tot de  14 directory.
Then je moet dit melden als een fout.
Je kunt een locale tactiek module genereren om deze toegang toe te staan.
Do
sta deze toegang nu toe door het uitvoeren van:
# 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:user_home_t:s0
Target Objects                14 [ dir ]
Source                        java
Source Path                   /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19.x86_64/jr
                              e/bin/java
Port                          <Onbekend>
Host                          (removed)
Source RPM Packages           java-1.7.0-openjdk-1.7.0.19-2.3.9.3.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                   34
First Seen                    2013-05-28 07:44:44 CEST
Last Seen                     2013-05-28 07:47:35 CEST
Local ID                      6c52cef6-14fb-4439-9ce8-256a1d8187ff

Raw Audit Messages
type=AVC msg=audit(1369720055.263:197): avc:  denied  { create } for  pid=2258 comm="java" name="14" scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir


type=SYSCALL msg=audit(1369720055.263:197): arch=x86_64 syscall=mkdir success=no exit=EACCES a0=7f79700061f0 a1=1ff a2=7f7a1b5e0060 a3=1e items=0 ppid=1515 pid=2258 auid=1002 uid=1002 gid=1002 euid=1002 suid=1002 fsuid=1002 egid=1002 sgid=1002 fsgid=1002 ses=2 tty=(none) comm=java exe=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19.x86_64/jre/bin/java subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: java,mozilla_plugin_t,user_home_t,dir,create

audit2allow

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t user_home_t:dir create;

audit2allow -R

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t user_home_t:dir create;


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

Potential duplicate: bug 963143

Comment 1 Miroslav Grepl 2013-05-28 10:11:32 UTC

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


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