Operating System - Linux
1827811 Members
2037 Online
109969 Solutions
New Discussion

Re: library loading problem

 
SOLVED
Go to solution
Chakravarthi
Trusted Contributor

library loading problem

hi all,

i'm getting the following error running an application.

it is giving this message while loading a library. i'm trying this on Fedora core 4.

cannot restore segment prot after reloc: Permission denied


Same application works fine in Fedora Core 3.

let me know what needs to be checked?

regards
chakri
5 REPLIES 5
Stuart Browne
Honored Contributor
Solution

Re: library loading problem

Lets see.. You're using SELinux in strict mode, yes?

Change the SELinux policy to either 'permissive' or 'disabled', and try it again. To do this, modify the line 'SELINUX=enforcing' in '/etc/selinux/config'.

If it works after that, then it's a matter of tracking down exactally what that library is accessing and opening up the SELinux policy for it. The 'permissive' warnings should tell you what it is that's being denied.
One long-haired git at your service...
Chakravarthi
Trusted Contributor

Re: library loading problem

hi,

i'm trying this on Fedora Core 4 machine

--chakri
Chakravarthi
Trusted Contributor

Re: library loading problem

thanks stuart,

it works,

if possible can you explain me more about SELinux? and what do the different modes for?

regards
chakri
Stuart Browne
Honored Contributor

Re: library loading problem

I can tell you what the different modes are about, but I'm still learning SELinux, and how to open up permissions for access to files/processes/sockets etc..

SELINUX's 3 settings are:
disabled: Don't do any SELinux checks
permissive: Warn if any SELinux rules are broken, but don't stop the access
enforcing: Don't allow anything that breaks any of the SELinux rules.

There's a reasonable amount of documentation around these days on SELinux, it's just a matter of wading through it to understand what is required. You can start at http://fedora.redhat.com/projects/selinux/index.html .
One long-haired git at your service...
Chakravarthi
Trusted Contributor

Re: library loading problem

thanks
chakri