LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cannot restore segment prot after reloc: Permission denied (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-restore-segment-prot-after-reloc-permission-denied-771446/)

HarryBoy 11-25-2009 06:31 AM

cannot restore segment prot after reloc: Permission denied
 
I got the following error when running a program from the commandline:

/lib/libdhuser.so.1: cannot restore segment prot after reloc: Permission denied

I googled this and to solve it I ran the following command as 'root'
/usr/sbin/setenforce 0

This sets mu Linux to turn off 'enforcing'


What is enforcing? and why did this error come up only in the above /lib/libdhuser.so.1:??


Thanks

kbp 11-25-2009 07:11 AM

'Enforcing' is one of the modes of selinux. There are 3 modes available:

- disabled
- permissive (monitoring but not acting)
- enforcing (monitoring and enforcing selinux policies)

There probably isn't a policy for /lib/libdhuser.so.1 so you may want to set selinux to disabled or permissive permanently until you can read up on it, on the RHEL/Fedora family you can edit /etc/sysconfig/selinux.

cheers


All times are GMT -5. The time now is 10:01 PM.