libjvm.so: cannot enable executable stack as shared object requires:
Hello,
While doing a dlopen on libjvm.so on Redhat 5.3, I am getting the following error:
libjvm.so": libjvm.so: cannot enable executable stack as shared object requires: Permission denied
I am seeing this only when SELinux is set to enforced mode. On further analysis, it seems like execute stack permission is set on all JRE shared libraries.
Is this really required ? Can execute stack be removed on shared libraries as per details provided here :http://people.redhat.com/drepper/nonselsec.pdf
If this is indeed required, then a selinux policy needs to be created that will ensure selinux allows libjvm.so to be loaded. (http://docs.fedoraproject.org//selinux-faq-fc5/#id2961385)
Thanks