selinux 权限设置
2016-11-14 19:18
267 查看
针对一些platform_app应用无法访问data目录,提示是权限问题,比如:
W/droid.gallery3d(3922): type=1400 audit(0.0:116): avc: denied { execute} for path="/data/data/com.android.gallery3d/code_cache/com.android.renderscript.cache/librs.convolve3x3.so"dev="mmcblk0p20"
ino=986737 scontext=u:r:platform_app:s0:c512,c768tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file permissive=1
在加载一个库时提示失败,可以尝试修改:
device/common/sepolicy/platform_app.te 相关文件,添加:
allow platform_app app_data_file:file execute;
ls -Z看下,可以查看是否是selinux权限问题。
可以参考:http://blog.chinaunix.net/uid-7213935-id-5750899.html
W/droid.gallery3d(3922): type=1400 audit(0.0:116): avc: denied { execute} for path="/data/data/com.android.gallery3d/code_cache/com.android.renderscript.cache/librs.convolve3x3.so"dev="mmcblk0p20"
ino=986737 scontext=u:r:platform_app:s0:c512,c768tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file permissive=1
在加载一个库时提示失败,可以尝试修改:
device/common/sepolicy/platform_app.te 相关文件,添加:
allow platform_app app_data_file:file execute;
ls -Z看下,可以查看是否是selinux权限问题。
可以参考:http://blog.chinaunix.net/uid-7213935-id-5750899.html
相关文章推荐
- Android的LocalSocket实现及SELinux权限设置.编译(应用层和native通信)
- Android 6.0出现的init: cannot execve(‘XXX’):Permission denied问题:禁止SELINUX的权限设置
- SELinux 权限设置
- 关于http服务器和selinux权限设置
- selinux 的设置导致vsftp权限问题(linux的ftp用户无法连接问题)
- Android selinux权限设置
- Android 6.0出现的init: cannot execve(‘XXX’):Permission denied问题:禁止SELINUX的权限设置
- 关于http服务器和selinux权限设置
- Android 6.0出现的init: cannot execve(‘XXX’):Permission denied问题:禁止SELINUX的权限设置
- selinux 的设置导致vsftp权限问题
- Windows下权限设置详解
- 使用webshell突破虚拟主机权限设置的一般思路
- 通过试验探索 Access 2000/XP 数据库的最佳 NTFS 权限设置 (转)
- Windows下权限设置详解
- mysql设置权限
- 设置Windows系统NTFS某个目录的用户访问权限(c#)
- 不基于NTFS权限的CVSNT权限设置
- ASP.NET在使用Access数据库的IIS和目录权限设置
- [Windows安全设置]Windows下权限设置详解
- (转载)Windows下权限设置详解