动态库加载出错,cannot restore segment prot after reloc: Permission denied

项目中碰到的问题,编译好的so文件,放到其他机器上去加载,报了错误,cannot restore segment prot after reloc: Permission denied。 网上查了一下,原因是selinux的问题,selinux的设置太过严格导致的。解决的办法是在root用户下,修改/etc/selinux/config 文件, [cpp] view plain

猜你喜欢

转载自blog.csdn.net/www476907899/article/details/25365449