<br><br><b><i>Paul Howarth <paul@city-fan.org></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Fred J. wrote:<br>> <br>> Paul Howarth <paul@city-fan.org> wrote: On Mon, 2006-10-02 at 00:13 -0700, Fred J. wrote:<br>>> Hi<br>>> while following the stops to install JRE as per<br>>> http://stanton-finley.net/fedora_core_5_installation_notes.html<br>>><br>>><br>>> the instruction which says:<br>>> If you have not already done so go to "System" > "Administration" ><br>>> "Security Level and Firewall". Enter your root password and click<br>>> "ok". On the "SELinux" tab click on "Modify SELinux Policy", click on<br>>> "Compatibility" to open it and tick the check box next to "Allow the<br>>> use of shared libraries with Text Relocation". Click "ok". Reboot your<br>>> machine to implement the new SELinux
 policy.<br>>><br>>> I don't have kde or gnome and neither of the following seams to match<br>>> what the article is talking about.<br>>> # system-config-securitylevel<br>>> # system-config-securitylevel-tui<br>> <br>> This action sets the allow_execmod SELinux boolean. You could do that<br>> from the command line without using system-config-securitylevel as<br>> follows:<br>> <br>> # setsebool -P allow_execmod 1<br>> <br>> There is no need to reboot after doing this.<br>> <br>> However, this is not the best way of solving the problem, as it relaxes<br>> security much more than necessary. A better way would be to set the<br>> SElinux context type of the java libraries to textrel_shlib_t, which<br>> would have the same effect but only for those particular libraries.<br>> <br>> Paul.<br>> <br>> does this mean that I should ignore the step in the instruction which talks about <br>> "Allow the
 use of shared libraries with Text Relocation".<br>> and go ahead with the rest of the steps as listed here<br>> http://stanton-finley.net/fedora_core_5_installation_notes.html under Java and then go back and set the SElinux context type of the java libraries to textrel_shlib_t. ?<br><br>Yes, you could do it that way.<br><br>However, I think a better way, from both a system maintenance and <br>SELinux point of view, would be to use the JPackage RPMs. You need to <br>build these yourself due to the way Sun license Java, and this may <br>appear at first to be a daunting prospect, but it's not difficult <br>really. See: http://www.city-fan.org/tips/JpackageJava<br><br>Installing Java using the JPackage RPMs will get all of the SELinux <br>contexts set correctly "out of the box" and the software will be managed <br>by RPM, just like all the other software on the system. It really is the <br>best way IMHO.<br><br>Paul.<br></paul@city-fan.org></blockquote>Paul<br>thanks
 alot<br>after going through the link I now have it.<br>[fred@localhost i586]$ java -version<br>java version "1.5.0_09"<br>Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)<br>Java HotSpot(TM) Client VM (build 1.5.0_09-b01, mixed mode, sharing)<br>[fred@localhost i586]$ cd /usr/lib/mozilla/plugins/<br>[fred@localhost plugins]$ ls<br>[fred@localhost plugins]$ ls -a<br>.  ..<br>[fred@localhost plugins]$ sudo ln -s ../../../lib/jvm/java/jre/plugin/i386/ns7/libjavaplugin_oji.so .<br>Password:<br>[fred@localhost plugins]$ ls -l<br>total 4<br>lrwxrwxrwx 1 root root 62 Oct  4 03:46 libjavaplugin_oji.so -> ../../../lib/jvm/java/jre/plugin/i386/ns7/libjavaplugin_oji.so<br><br>however when I restart firefox, and go to a suitable page, it still asks to install a plugin JRE.<br><p>
                <hr size=1>Do you Yahoo!?<br> Everyone is raving about the <a href="http://us.rd.yahoo.com/evt=42297/*http://advision.webevents.yahoo.com/mailbeta"> all-new Yahoo! Mail.</a>