Bug 1030383 - SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk- from 'read' accesses on the file /anon_hugepage (deleted).
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: 2013-11-14 05:57 EST by Igor Gnatenko
Modified: 2013-12-06 12:25 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-12-06 12:25:51 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Igor Gnatenko 2013-11-14 05:57:39 EST
Description of problem:
SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk- from 'read' accesses on the file /anon_hugepage (deleted).

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If you want to fix the label. 
/anon_hugepage (deleted) default label should be etc_runtime_t.
Then you can run restorecon.
# /sbin/restorecon -v /anon_hugepage (deleted)

*****  Plugin catchall (1.49 confidence) suggests   **************************

If you believe that java should be allowed read access on the anon_hugepage (deleted) file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
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                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:hugetlbfs_t:s0
Target Objects                /anon_hugepage (deleted) [ file ]
Source                        java
Source Path                   /usr/lib/jvm/java-1.7.0-openjdk-
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           java-1.7.0-openjdk-
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-90.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.7-300.fc20.x86_64 #1 SMP Mon
                              Nov 4 15:07:39 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-11-14 13:23:22 MSK
Last Seen                     2013-11-14 13:23:22 MSK
Local ID                      c2eea7b7-9ba9-4315-a68b-abf600c3b91c

Raw Audit Messages
type=AVC msg=audit(1384421002.337:518): avc:  denied  { read } for  pid=1538 comm="java" path=2F616E6F6E5F6875676570616765202864656C6574656429 dev="hugetlbfs" ino=22035 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:hugetlbfs_t:s0 tclass=file

type=SYSCALL msg=audit(1384421002.337:518): arch=x86_64 syscall=mmap success=no exit=EACCES a0=0 a1=200000 a2=3 a3=40022 items=0 ppid=1 pid=1538 auid=4294967295 uid=992 gid=990 euid=992 suid=992 fsuid=992 egid=990 sgid=990 fsgid=990 ses=4294967295 tty=(none) comm=java exe=/usr/lib/jvm/java-1.7.0-openjdk- subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: java,xdm_t,hugetlbfs_t,file,read

Additional info:
reporter:       libreport-2.1.9
hashmarkername: setroubleshoot
kernel:         3.11.7-300.fc20.x86_64
type:           libreport
Comment 1 Miroslav Grepl 2013-12-06 12:25:51 EST
Please re-open if this happens again.

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