android te avc 权限

01-14 16:14:45.867 E/selinux (    0): avc:  denied  { set } for property=ctl.stop$vendor.fm pid=543 uid=1002 gid=1002 scontext=u:r:hal_bluetooth_qti:s0 tcontext=u:object_r:ctl_stop_prop:s0 tclass=property_service permissive=0

缺少什么权限:{ set }
谁缺少权限:scontext=u:r:hal_bluetooth_qti:s0
对那些文件缺少权限:tcontext=u:object_r:ctl_stop_prop:s0
什么类型的权限:tclass=property_service

总结:hal_bluetooth_qti进程对property_service类型的ctl_stop_prop缺少set权限
修改:
device/qcom/sepolicy/vendor/common/hal_bluetooth_qti.te
添加
allow hal_bluetooth_qti ctl_stop_prop:property_service set;

make installclean后重新编译,刷boot.img才会生效。

为了澄清是否因为SELinux导致的问题,可先执行:
setenforce 0 (临时禁用掉SELinux)
getenforce  (得到结果为Permissive)

发布了376 篇原创文章 · 获赞 40 · 访问量 46万+

猜你喜欢

转载自blog.csdn.net/wangjicong_215/article/details/104656742
te