"cannot restoresegment prot after reloc: Permission denied"

"cannot restoresegment prot after reloc: Permission denied"

如果你的linux發行版開啓了selinux,你就可能碰到這樣

"cannot restoresegment prot after reloc: Permission denied"

的錯誤。原因是你的程序要text reloaction,但是selinux不允許。只要修改一下selinux策略,允許library text reloaction就可以了!

舉個例子,你碰到問題的so文件是xxx.so,

那麼

chcon -t texrel_shlib_t test.so

就可以了

Author: 駱志輝<[email protected]>

Date: 2012-06-28 17:08:34 CST

HTML generated by org-mode 6.33x in emacs 23

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章