Page Tools:
Wiki Relationships:
Admin Tools:
Article:How to resolve the "cannot restore segment prot after reloc: Permission denied" problem?
The problem arises when SELinux (NSA Security-Enhanced Linux) is enabled and in Enforcing mode. This error mostly occur when accessing shared libraries. To find out the current mode, run
# getenforceOne may either disable SELinux by setting selinux=disable in /etc/selinux/config (reboot required) or set SELinux to Permissive mode by running
# setenforce Permissive
On Fedora, setenforce is under /usr/sbin.
A better approach would be to change the security context of the shared libraries in question using the chcon command:# chcon -t texrel_shlib_t *.soTo change all shared libraries under a directory:
# find <dir> -type f -name "*.so" | xargs chcon -t shlib_t
Most Recent |
Most Popular |
Most Active Categories |
| Back To Top | Add New Article | Printable Page |

Testing
