Jump to content
Karsten Wenzke

Linux: My program does not start and displays: "Error: cannot restore segment prot after reloc: Permission denied"

Recommended Posts

For Linux user only!

 

My program does not start and displays: "Error: cannot restore segment prot after reloc: Permission denied"

 

Newer Linux distributions have enabled new kernel security extensions from the SELinux project at the NSA. These extensions allow finer-grained control over system security. However, SELinux also changes some default system behaviors, such as shared library loading, that can be problematic to third party programs.

For testing you should deactivate your SELinux by setting the line SELINUX=disabled in your /etc/sysconfig/selinux file and reboot your system.

But that is not secure, please read the man pages of SELinux.

 

Perhaps following comands will help you:

 

cd $FSBASE

chcon --t textrel_shlib_t `pwd`/lib/Linux.x86_64/*.so*

chcon --t textrel_shlib_t `pwd`/plugs/Linux.x86_64/*.so*

Share this post


Link to post
Share on other sites

×
×
  • Create New...