Page 1 of 1

SELinux is a solution that allows an x.so to be invoked normally

Posted: Mon Jan 14, 2019 10:37 pm
by youyou
I have encountered many problems before. Because SELinux is on, when executing a program, it will prompt: error while loading Shared libraries: XXX. So: cannot restore segment prot after reloc: Permission denied.

Re: SELinux is a solution that allows an x.so to be invoked normally

Posted: Mon Jan 14, 2019 10:37 pm
by youyou
Method one:
Modify /etc/selinux/config file,
Change the SELINUX = enforcing to SELINUX = disabled.
Then, save, close, and restart the machine.

Method two:
Execute the command chcon-t texrel_shlib_t XXX. So

Re: SELinux is a solution that allows an x.so to be invoked normally

Posted: Thu Mar 21, 2019 5:35 am
by lanzi
Very nice :)