Bug 178624 - JVM and SELinux configuration (FC5 relnotes)
Summary: JVM and SELinux configuration (FC5 relnotes)
Alias: None
Product: Fedora Documentation
Classification: Fedora
Component: release-notes
Version: devel
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Anthony Green
QA Contact: Karsten Wade
Depends On:
Blocks: fc-relnotes-traqr
TreeView+ depends on / blocked
Reported: 2006-01-22 18:51 UTC by David Bentley
Modified: 2007-04-18 17:36 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2006-01-30 23:03:27 UTC

Attachments (Terms of Use)

Description David Bentley 2006-01-22 18:51:55 UTC
Section 9.1.5 of the release notes explains how best to install sun java in /opt
but it doesn't explain what else needs to be done to get it to work properly.

You need to modify the selinux policy by ticking two boxes in the compatibility
section in order to use the sun java plugin with firefox.

[1] Allow executables to run with executable stack
[2] Allow the use of shared libraries with text relocation

Also note that [1] is necessary in order to use the macromedia/adobe provided
flash player with firefox.

A seperate section within the package-specific notes may be useful for the
instuctions for the selinux policy change required when only the flasplayer
is installed as some people will roll their own java packages instead of using
those provided by sun ( I will wait for FC5T3 of FINAL before making my own
java packages as I did for FC4 )

Comment 1 David Bentley 2006-01-22 20:19:33 UTC
Sorry shold have alter the summary to FC5 release notes -- 
Done now.

Comment 2 David Bentley 2006-01-24 18:00:21 UTC
Update on this after completelty removing flash and sun java then re-installing 
sun java by extracting it again into /opt and then installing flask again and it 
now seems that both [1] and [2] are needed for both sun java and flash.

it would seem that at some point libflashplayer.so in /usr/lib/mozilla/plugins
got re-labled from root:object_r:lib_t to system_u:object_r:textrel_shlib_t at
some point.

re-labeling all the files (and those symbolically linked to)
in /usr/lib/mozilla/plugins with the following command
(while in /usr/lib/mozilla/plugins) 
chcon system_u:object_r:textrel_shlib_t *.*
should remove the need to apply a tick to box [2]
but I suspect far more than adding the command to do what is done by the tick
in box [1] is required to remove the need for it 

Comment 3 Karsten Wade 2006-01-25 19:16:47 UTC
Not sure if this is relevant for the relnotes or not, it depends on if the
software in question is i) within Core or Extras, and ii) is permissible to

I'm reassigning to the Java release notes beat writer for review.

For information about what we don't document or why:


Comment 4 Anthony Green 2006-01-30 23:03:27 UTC
The release notes currently describe the old & busted mechanism for installing
sun's java.  The problem you're having should go away using the new mechanism. 
Or , at least, if they don't go away - we can fix it without forcing users to
mess with SELinux settings.  We don't want to support Sun's /opt install mess.

I'll point the JPackage maintainers at this bugzilla entry, so they can add the
appropriate SELinix voodoo to their spec files.  I'm closing this bug.

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