Description of problem: When the latest Eclipse milestone is launched with Sun's Java 6, selinux blocks it from loading libjvm.so because it requires text relocation. Version-Release number of selected component (if applicable): Eclipse 3.4M5; Sun Java 1.6.0_04 installed in /usr/local/java/jdk1.6.0_04 (owned by root) How reproducible: always Steps to Reproduce: 1. Install Sun Java 2. download and unpack Eclipse 3.4M5 from http://download.eclipse.org/eclipse/downloads/ 3. double-click on the eclipse executable. Actual results: Eclipse launch blocked by selinux Expected results: Successful launch Additional info: Log information from the browser attached.
Created attachment 297345 [details] selinux browser log message
I've tested default installation and eclipse works. # ls -Z /usr/java/jdk1.6.0_05/jre/lib/i386/client/libjvm.so -rwxr-xr-x root root system_u:object_r:textrel_shlib_t /usr/java/jdk1.6.0_05/jre/lib/i386/client/libjvm.so Try to relabel your filesystem: # restorecon -Rv /usr/local/java/ OR # touch /.autorelabel; reboot
Even if I move java tree to /usr/local it is still labeled correctly # restorecon -Rv /usr/local/java/ # ls -Z /usr/local/java/jdk1.6.0_05/jre/lib/i386/client/libjvm.so -rwxr-xr-x root root system_u:object_r:textrel_shlib_t /usr/local/java/jdk1.6.0_05/jre/lib/i386/client/libjvm.so # rpm -q selinux-policy selinux-policy-2.6.4-70.fc7 In case that your problem isn't solved by above steps please reopen bug.