Bug 826719 - SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk- from using the 'execmem' accesses on a process.
SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk- fr...
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-05-30 16:30 EDT by Daniel Demus
Modified: 2012-05-31 16:17 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-05-30 17:04:06 EDT
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 Daniel Demus 2012-05-30 16:30:20 EDT
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.7-1.fc16.x86_64
time:           2012-05-30T22:30:02 CEST

:SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk- from using the 'execmem' accesses on a process.
:*****  Plugin catchall_boolean (89.3 confidence) suggests  *******************
:If you want to httpd_execmem
:Then you must tell SELinux about this by enabling the 'httpd_execmem' boolean.You can read 'httpd_selinux' man page for more details.
:setsebool -P httpd_execmem 1
:*****  Plugin catchall (11.6 confidence) suggests  ***************************
:If you believe that java should be allowed execmem access on processes labeled httpd_t 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:httpd_t:s0
:Target Context                system_u:system_r:httpd_t:s0
:Target Objects                 [ process ]
:Source                        java
:Source Path                   /usr/lib/jvm/java-1.7.0-openjdk-
:                              va
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           java-1.7.0-openjdk-
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-125.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.7-1.fc16.x86_64 #1 SMP
:                              Tue May 22 13:59:39 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    2012-05-30T21:28:17 CEST
:Last Seen                     2012-05-30T22:02:16 CEST
:Local ID                      f9b77187-0f2e-4be7-8d31-2d9be8966c5d
:Raw Audit Messages
:type=AVC msg=audit(1338408136.177:35): avc:  denied  { execmem } for  pid=739 comm="java" scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:system_r:httpd_t:s0 tclass=process
:type=SYSCALL msg=audit(1338408136.177:35): arch=i386 syscall=lgetxattr success=no exit=EACCES a0=f3800000 a1=240000 a2=7 a3=32 items=0 ppid=1 pid=739 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=java exe=/usr/lib/jvm/java-1.7.0-openjdk- subj=system_u:system_r:httpd_t:s0 key=(null)
:Hash: java,httpd_t,httpd_t,process,execmem
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
Comment 1 Daniel Walsh 2012-05-30 17:04:06 EDT
The alert tells you what to do 

setsebool -P httpd_execmem 1
Comment 2 Daniel Demus 2012-05-31 15:34:52 EDT
But I shouldn't need to do it, seeing as I haven't changed anything myself, n'est pas?
Comment 3 Miroslav Grepl 2012-05-31 15:37:54 EDT
So you did not setup apache?

This is caused by java and we really want to allow it by default.
Comment 4 Daniel Walsh 2012-05-31 16:17:27 EDT
You are saying you did not setup a java app to run within your apache environment?

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