"cannot restoresegment prot after reloc: Permission denied"

来源:互联网 发布:主播录音软件 编辑:程序博客网 时间:2024/05/21 11:24

"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: 骆志辉<camel_flying@163.com>

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

HTML generated by org-mode 6.33x in emacs 23

原创粉丝点击