What are possible causes of “failed to map segment from shared object: operation not permitted”, and how to debug?

巧了我就是萌 提交于 2019-11-29 09:36:14

I had this error in a different context. For some reason it causes an error when trying to use the /tmp folder.

To solve this I simply:

mkdir tmp
export TMPDIR=`pwd`/tmp

Permission issue. Need to remount /tmp. The following command works for me (Centos 7):

sudo mount /tmp -o remount,exec

The issue was with how the executables were compiled. They needed to be compiled with a cross compiler that properly supported newer arm devices. The compiler I used generated executables that would only work on a subset of arm devices. The issue was not with the different versions of android.

SELinux is enabled by default on Android 4.3, however it is supposed to be "permissive" [0]. Maybe your phone vendor added more restrictive rules.

[0] https://source.android.com/devices/tech/security/se-linux.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!