Page 1 of 1

....so: cannot restore segment prot after reloc: Permission

Posted: Mon Jun 23, 2008 8:11 am
by jan
Hi!

The following error was just reported to me while attempting to run a TQ-coupled MICRESS binary under Linux:

'MICRESS_TQ: error while loading shared libraries: [LIBTQ_PATH]/libtq.so: cannot restore segment prot after reloc: Permission denied'

This is not directly related to MICRESS or even TQ, but rather an issue with SE-Linux (see the links mentioned at the end), and the file security layer called 'context' which it introduced: the solution is to reset this so-called context with the following command:

'chcon --verbose --type texrel_shlib_t [LIBTQ_PATH]/libtq.so'

(please note that you might need special priviledges for this command to succeed).

Philippe

PS: some reading about Security Enhanced Linux:
http://www.crypt.gen.nz/selinux/
http://www.nsa.gov/selinux/
http://fedora.redhat.com/docs/selinux-faq/


---

original message from Philippe