简体   繁体   English

修复Android SELinux规则

[英]Fix Android SELinux rules

i'm trying to port android on a new device but getting logcat spammed with this error message: 我正在尝试在新设备上移植android,但logcat出现以下错误消息:

avc: denied { ioctl } for pid=187 comm="Binder_2" path="socket:[10387]" dev="sockfs" ino=10387 ioctlcmd=7704 scontext=u:r:surfaceflinger:s0 tcontext=u:r:surfaceflinger:s0 tclass=unix_stream_socket permissive=1

and

avc: denied { ioctl } for pid=589 comm="Binder_6" path="socket:[10879]" dev="sockfs" ino=10879 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=1

anyone help me to fix this please. 任何人都可以帮助我解决此问题。

need the patch here: https://android-review.googlesource.com/#/c/198885/4/libs/binder/Parcel.cpp 在此处需要补丁: https : //android-review.googlesource.com/#/c/198885/4/libs/binder/Parcel.cpp

Here is the backport for android-6.0.1_r55: https://android-review.linaro.org/#/c/17071/1/libs/binder/Parcel.cpp 这是android-6.0.1_r55的反向端口: https ://android-review.linaro.org/#/c/17071/1/libs/binder/Parcel.cpp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM