Fix Android SELinux rules
<p>i'm trying to port android on a new device but getting logcat spammed with this error message:</p>

<pre><code>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
</code></pre>

<p>and</p>

<pre><code>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
</code></pre>

<p>anyone help me to fix this please.</p>