Thursday, December 6, 2007

cannot restore segment prot after reloc: Permission denied

That is SELinux policy problem.

System -> Administration -> Security Level and Firewall -> SELinux Tab. Change
"Enforce" to "Permisive"



Or we can config to only allow this policy
System -> Administration -> Security Level and Firewall-> SELinux tab ->Modify SELinux Policy ->Compatibility -> Allow the use of shared libraries with Text Relocation

3 comments:

Crescent said...

Hey you tip worked like charm in my red hat enterprise edition. Thank you so much :)

Anonymous said...

Thanks Johnson. saved a lot of labor
In Fedora 10, System->SELinux Admin->Boolean, Allow text relocation

Anonymous said...

Thank you very much. I indeed fixed my problem with sqlplus after I had downloaded the linux and installed oracle.

The below is the actual message:

sqlplus / as sysdba
sqlplus: error while loading shared libraries: /u01/app/oracle/product/11.1.0/db_1/lib/libnnz11.so: cannot restore segment prot after reloc: Permission denied

After changing the setting as you have mentioned, it worked great. Saved lot of my time.

Heartful Thanks