device_google_zuma/vendor/audioserver.te
millerliang 8889eb6496 audio:fix AAudio API access denial
This commit adds the sepolicy file for AAudio API

I auditd  : type=1400 audit(0.0:113):
avc: denied { map } for comm="binder:900_7" path="/dev/snd/pcmC0D0p"
dev="tmpfs" ino=1191 scontext=u:r:audioserver:s0
tcontext=u:object_r:audio_device:s0 tclass=chr_file permissive=1

Bug: 264484544
Test: test_steal_exclusive -c0
Test: Check no avc_deny on audioserver
Change-Id: I9efde74c74722b1b32c1d800a4cbceea8a850bfa
2023-01-09 14:55:32 +08:00

2 lines
100 B
Text

#allow access to ALSA MMAP FDs for AAudio API
allow audioserver audio_device:chr_file r_file_perms;