From 8d1a560bf973fd11f11a71c47aabe49334ddc734 Mon Sep 17 00:00:00 2001 From: Jayachandran C Date: Tue, 14 Mar 2023 07:40:15 +0000 Subject: [PATCH] Allow radio to find and invoke Audio HAL for updating the network info during improved WiFi calling This CL fixes the following denials auditd : avc: denied { find } for interface=vendor.google.whitechapel.audio.audioext::IAudioExt sid=u:r:radio:s0 pid=2676 scontext=u:r:radio:s0 tcontext=u:object_r:hal_audio_ext_hwservice:s0 tclass=hwservice_manager permissive=0 auditd : type=1400 audit(0.0:2983): avc: denied { call } for comm="binder:2617_3" scontext=u:r:radio:s0 tcontext=u:r:hal_audio_default:s0 tclass=binder permissive=0 Bug: 267802258 Test: Live network testing and verified the AudioExt HAL message Change-Id: Iffa2bcc9b8fa56c383cb765b7cbdf1ff667376c5 --- radio/radio.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radio/radio.te b/radio/radio.te index 59107aab..5d132733 100644 --- a/radio/radio.te +++ b/radio/radio.te @@ -2,3 +2,5 @@ allow radio radio_vendor_data_file:dir rw_dir_perms; allow radio radio_vendor_data_file:file create_file_perms; allow radio vendor_ims_app:udp_socket { getattr read write setopt shutdown }; allow radio aoc_device:chr_file rw_file_perms; +allow radio hal_audio_ext_hwservice:hwservice_manager find; +binder_call(radio, hal_audio_default)