Jump to content


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

linux restore segment proc

  • Please log in to reply
No replies to this topic

#1 Karsten Wenzke

Karsten Wenzke

    Moderator

  • Moderators
  • 269 posts
  • LocationBerlin

Posted 14 January 2013 - 03:44 PM

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*
  • 0

Karsten Wenzke B.Eng.
Service and Support
Engineer
 

Contact me on Linkedin.

 

www.friendship-systems.com
TEL. +49 (0)331 967 66 0

 






Also tagged with one or more of these keywords: linux, restore, segment, proc