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

FAQs about installation, license manager, pecularities of specific operating systems
Post Reply

.../libtq.so: cannot restore segment prot after reloc: Permission denied

SE Linux's 'context' security layer
0
No votes
chcon
0
No votes
SE Linux
0
No votes
libtq.so
1
100%
 
Total votes: 1

jan
Posts: 74
Joined: Thu Jun 19, 2008 2:54 pm

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

Post by jan » Mon Jun 23, 2008 8:11 am

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

Post Reply