SELinux and/or AppArmor is preventing Linux applications from running

After getting this error message, I had to figure out the problem.  The answer seems to be fairly simple, but it also seems quite important.

./googleearth-bin: error while loading shared libraries: ./libminizip.so: cannot restore segment prot after reloc: Permission denied

I did a search for disabling SELinux.  This page proved to be quite helpful.
http://www.crypt.gen.nz/selinux/disable_selinux.html#DIS1

I do not believe that disabling SELinux will cause any serious security problems for regular home users.  It is used mostly by government agencies.

I use Windows XP Professional at home, and it has the ability to specifically allow and deny access to certain files and/or programs.  It has other security features, but I do not use them.  From what I can see, SELinux is similar.

Therefore, if you are using your computer as a server, this should not be disabled.

For the rest of us, setting SELinux to disabled or permissive is a better alternative. You can learn how to set SELinux to disabled or permissive mode at http://www.crypt.gen.nz/selinux/disable_selinux.html#DIS1

Permissive works for me, so I use that.  GoogleEarth works with SELinux set to permissive mode.

AppArmor is used in Ubuntu and can be referenced at https://help.ubuntu.com/community/AppArmor

You must edit the files as root.

In Red Hat that would be su –

In Ubuntu that would be sudo

Once you become root, run gedit and find the file to open.  This is the easiest way to do it.

Leave a Reply