Red Hat Bugzilla – Bug 485886
SELinux is preventing googleearth-bin from loading /opt/google-earth/librender.so which requires text relocation.
Last modified: 2009-12-16 06:48:27 EST
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:184.108.40.206) Gecko/2008111723 Firefox/3.0.4 Flock/2.0.2
Google Earth 5.0 (beta) for PC, Mac or Linux gives selinux errors and does not run. After running "chcon -t textrel_shlib_t /opt/google-earth/*.so" , as root, it runs and displays the splash screen. The main application window remains blank.
Steps to Reproduce:
1.This occurs everytime you run Google Earth 5.0 (beta) for PC, Mac or Linux on Fedora core 10
The setroubleshoot browser reports as follows:
The googleearth-bin application attempted to load /opt/google-earth/libminizip.so which requires text relocation. This is a potential security problem. Most libraries do not need this permission. Libraries are sometimes coded incorrectly and request this permission. The SELinux Memory Protection Tests web page explains how to remove this requirement.
In my case when I try to run Google Earth beta 5.0 on fedora 10it gives selinux denial as mentioned in comment # 1.
even after invoking the 'chcon' command the case is same. I do not even get the blank splash screen !
When I tried to run google earth through terminal with root privilege it gave me following reply :
./googleearth-bin: error while loading shared libraries: ./librender.so: cannot restore segment prot after reloc: Permission denied
See if it is useful to you.
This is a selinux-policy-targeted bug, not google-gadgets -- google-gadgets != google-earth.
This is the bug with Google Earth. They have built their libraries incorrectly.
For your information you can get the default SELinux security context:
# matchpathcon /opt/google-earth/librender.so
# restorecon -R -v /opt/google-earth/
Should fix it.
(In reply to comment #5)
> This is the bug with Google Earth. They have built their libraries incorrectly.
> For your information you can get the default SELinux security context:
> # matchpathcon /opt/google-earth/librender.so
> /opt/google-earth/librender.so system_u:object_r:textrel_shlib_t:s0
> # restorecon -R -v /opt/google-earth/
> Should fix it.
After this every time i start googleearth, googleearth settings are reseted every time.