Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

libjvm.so: cannot enable executable stack as shared object requires:

843798Mar 30 2010
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 27 2010
Added on Mar 30 2010
0 comments
810 views