Bug 854424

Summary: SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/jre/bin/java from 'getattr' accesses on the file /home/paulomarcelo/hs_err_pid7679.log.
Product: [Fedora] Fedora Reporter: paulomarcelo <pmpcdg>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:47da0080b81be7394abf65288bb0a6b9f909c7d8e79384e05fac81d8dec038c1
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-05 08:09:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description paulomarcelo 2012-09-05 01:23:14 UTC
Additional info:
libreport version: 2.0.13
kernel:         3.5.2-1.fc17.x86_64

description:
:SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/jre/bin/java from 'getattr' accesses on the file /home/paulomarcelo/hs_err_pid7679.log.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If você acredita que o java deva ser permitido acesso de getattr em hs_err_pid7679.log file  por default.
:Then você precisa reportar este como um erro.
:Você pode gerar um módulo de política local para permitir este acesso.
:Do
:permitir este acesso agora executando:
:# 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_dir_t:s0
:Target Objects                /home/paulomarcelo/hs_err_pid7679.log [ file ]
:Source                        java
:Source Path                   /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.x86_64/jre
:                              /bin/java
:Port                          <Desconhecido>
:Host                          (removed)
:Source RPM Packages           java-1.7.0-openjdk-1.7.0.6-2.3.fc17.2.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-145.fc17.noarch selinux-
:                              policy-3.10.0-146.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.5.2-1.fc17.x86_64 #1 SMP Wed Aug
:                              15 16:09:27 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    2012-09-04 22:22:09 BRT
:Last Seen                     2012-09-04 22:22:09 BRT
:Local ID                      1d6e270a-52ff-4894-8f84-5129a1f1b884
:
:Raw Audit Messages
:type=AVC msg=audit(1346808129.930:168): avc:  denied  { getattr } for  pid=7681 comm="java" path="/home/paulomarcelo/hs_err_pid7679.log" dev="dm-2" ino=1311711 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1346808129.930:168): arch=x86_64 syscall=fstat success=no exit=EACCES a0=5 a1=7fb4a0aec930 a2=7fb4a0aec930 a3=238 items=0 ppid=7659 pid=7681 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=5 comm=java exe=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6.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_dir_t,file,getattr
:
:audit2allow
:
:#============= mozilla_plugin_t ==============
:allow mozilla_plugin_t user_home_dir_t:file getattr;
:
:audit2allow -R
:
:#============= mozilla_plugin_t ==============
:allow mozilla_plugin_t user_home_dir_t:file getattr;
:

Comment 1 paulomarcelo 2012-09-05 01:23:17 UTC
Created attachment 609823 [details]
File: type

Comment 2 paulomarcelo 2012-09-05 01:23:19 UTC
Created attachment 609824 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-09-05 08:09:41 UTC
Try to execute

# restorecon -R -v /home/paulomarcelo

to see if this fixes the problem. Reopen if not. Thank you.