Bug 854424 - SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk- from 'getattr' accesses on the file /home/paulomarcelo/hs_err_pid7679.log.
SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk-
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-09-04 21:23 EDT by paulomarcelo
Modified: 2012-09-05 04:09 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-09-05 04:09:41 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-09-04 21:23 EDT, paulomarcelo
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-09-04 21:23 EDT, paulomarcelo
no flags Details

  None (edit)
Description paulomarcelo 2012-09-04 21:23:14 EDT
Additional info:
libreport version: 2.0.13
kernel:         3.5.2-1.fc17.x86_64

:SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk- 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.
: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-
:                              /bin/java
:Port                          <Desconhecido>
:Host                          (removed)
:Source RPM Packages           java-1.7.0-openjdk-
: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- 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
:#============= 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-04 21:23:17 EDT
Created attachment 609823 [details]
File: type
Comment 2 paulomarcelo 2012-09-04 21:23:19 EDT
Created attachment 609824 [details]
File: hashmarkername
Comment 3 Miroslav Grepl 2012-09-05 04:09:41 EDT
Try to execute

# restorecon -R -v /home/paulomarcelo

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

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