From d1c45bdd1aae00a096902b4e28e4e29828b8fc27 Mon Sep 17 00:00:00 2001 From: JJ Lee Date: Wed, 19 Feb 2020 18:09:44 +0800 Subject: [PATCH] universal7885: sepolicy: Allow hal audio to use wakelock Allow audio hal service to take wakelock. This is needed to ensure Hotword sessions Following denied pattern: avc: denied { find } for interface=android.system.suspend::ISystemSuspend sid=u:r:hal_audio_default:s0 pid=7678 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:system_suspend_hwservice:s0 tclass=hwservice_manager permissive=0 Bug: 149454068 Test: build pass, "avc denied" cleared Change-Id: I11b9f72e48241dc5b7d942ad3b519c6e19910579 Signed-off-by: JJ Lee Signed-off-by: SamarV-121 --- sepolicy/private/hal_audio.te | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 sepolicy/private/hal_audio.te diff --git a/sepolicy/private/hal_audio.te b/sepolicy/private/hal_audio.te new file mode 100644 index 0000000..0ff691a --- /dev/null +++ b/sepolicy/private/hal_audio.te @@ -0,0 +1,2 @@ +# Allow hal audio to use wakelock +wakelock_use(hal_audio)