c++ - SELinux: cannot restore segment prot after reloc: Permission denied -


we testing our application in selinux environment. now, getting following error:

dlopen failed load libfoo.so -libfoo.so: cannot restore segment prot after reloc: permission denied 

as far understand my searches, related relocations in .text section in shared library. far can see, using -fpic of our shared libraries. though there possibly static libraries linked shared libraries.

how can find out relocations/symbols causing error pop up? should in nm or objdump -rr output shared library?

or fishing wrong information , problem lies somewhere else produced relocations in shared library?

i have found this: http://akkadia.org/drepper/textrelocs.html, boils down suggestion use eu-findtextrel see text relocations exist. recompiling affected libraries -fpic fixes problem.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -