From f3096dc93dffbc0581babce0eb6d0401d6871f98 Mon Sep 17 00:00:00 2001 From: Atneya Nair Date: Thu, 16 Feb 2023 10:39:26 -0800 Subject: [PATCH] Allow STHAL to read model params from system Test: Compiles Bug: 269544793 Change-Id: I3ea576c6ef092b27f602b047497e5c01fe36e057 --- public/hal_audio.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/hal_audio.te b/public/hal_audio.te index aabc884f8..237ffcd7c 100644 --- a/public/hal_audio.te +++ b/public/hal_audio.te @@ -22,6 +22,8 @@ allow hal_audio dumpstate:fifo_file write; # Needed to allow sound trigger hal to access shared memory from apps. allow hal_audio_server appdomain:fd use; +# Allow sound trigger hal to access shared memory from system server. +allow hal_audio_server system_server_tmpfs:file { getattr map read }; # allow self to set scheduler (and allows Binder RT PI) allow hal_audio_server self:global_capability_class_set sys_nice;