2 Commits

Author SHA1 Message Date
Carter Hsu
e23d5c44d0 Allow hal_audio_default to access DMA and TPU property
12-19 13:46:27.396000  1041  4222  4222 W gsenet/4949: type=1400 audit(0.0:51): avc:  denied  { read } for  name="u:object_r:vendor_edgetpu_runtime_prop:s0" dev="tmpfs" ino=399 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:vendor_edgetpu_runtime_prop:s0 tclass=file permissive=0

12-19 13:46:27.396000  1041  4222  4222 I auditd  : type=1400 audit(0.0:52): avc:  denied  { read } for  comm="gsenet/4949" name="system" dev="tmpfs" ino=1217 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:dmabuf_system_heap_device:s0 tclass=chr_file permissive=0

12-19 13:46:27.396000  1041  4222  4222 W gsenet/4949: type=1400 audit(0.0:52): avc:  denied  { read } for  name="system" dev="tmpfs" ino=1217 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:dmabuf_system_heap_device:s0 tclass=chr_file permissive=0

Bug: 317032803
Test: Verified by test build
Change-Id: Ifc2b720615b2ee9b74de163c128962411bbe0d4e
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-12-22 04:52:47 +00:00
feiyuchen
9f6785063a Add SEPolicy for audio HAL to use EdgeTpu
The added policies for Audio HAL (`hal_audio_default`) are exactly the same as Camera HAL (`hal_camera_default`).

Background: Audio team is migrating audio processing offload to TPU. POR is for Android U QPR.
Design doc: https://docs.google.com/document/d/1KarcXFbfiJVxHDFgT5AYNE0-tUc0cr_63dCNK-5HQys/edit?resourcekey=0-J-4NEenhAWuoa5Ou7ZGYgw

Bug: 289466639
Change-Id: I02b7ba4e4956b0db615b21a88dc47b615cc66e44
Test: It was tested in above Bug that Audio HAL could use EdgeTpu
2023-11-08 16:58:53 +00:00