Fix AAudio avc denied
I auditd : type=1400 audit(0.0:35): avc: denied { map } for comm="binder:896_4" path="/dev/snd/pcmC0D0p" dev="tmpfs" ino=1138 scontext=u:r:audioserver:s0 tcontext=u:object_r:audio_device:s0 tclass=chr_file permissive=0 E SELinux : avc: denied { find } for pid=887 uid=1041 name=audio scontext=u:r:audioserver:s0 tcontext=u:object_r:audio_service:s0 tclass=service_manager permissive=0 Bug: 222191260 Test: Flash TH ROM and test it by the following command Test: test_steal_exclusive -c0 Signed-off-by: millerliang <millerliang@google.com> Change-Id: I8ea6741f3682b568de089d040d511b68938374ab
This commit is contained in:
parent
1616b97465
commit
801b87fe71
1 changed files with 3 additions and 0 deletions
3
whitechapel_pro/audioserver.te
Normal file
3
whitechapel_pro/audioserver.te
Normal file
|
@ -0,0 +1,3 @@
|
|||
# allow access to ALSA MMAP FDs for AAudio API
|
||||
allow audioserver audio_device:chr_file r_file_perms;
|
||||
allow audioserver audio_service:service_manager find;
|
Loading…
Add table
Add a link
Reference in a new issue