From cdcd803b5a088ffd189a7c3ee8d206e8368ab74c Mon Sep 17 00:00:00 2001 From: Jayachandran C Date: Thu, 2 Feb 2023 22:25:03 +0000 Subject: [PATCH] Allow radio to access aoc_device for RTP encoding/decoding This CL labels new AoC devices used for RTP processing This fixes the follow denials type=1400 audit(0.0:11): avc: denied { write } for name="acd-audio_rtp_tx" dev="tmpfs" ino=1185 scontext=u:r:radio:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0 type=1400 audit(0.0:12): avc: denied { read } for name="acd-audio_rtp_rx" dev="tmpfs" ino=1186 scontext=u:r:radio:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0 Bug: 259178236 Test: Manually verified on the device with AOC Change-Id: Iffe0de3a27c89892af7ae280fa39dd28a0052542 --- aoc/sepolicy/file_contexts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aoc/sepolicy/file_contexts b/aoc/sepolicy/file_contexts index 399a6dc..3fc88b5 100644 --- a/aoc/sepolicy/file_contexts +++ b/aoc/sepolicy/file_contexts @@ -5,6 +5,8 @@ /dev/acd-audio_input_tuning u:object_r:aoc_device:s0 /dev/acd-audio_input_bulk_tx u:object_r:aoc_device:s0 /dev/acd-audio_input_bulk_rx u:object_r:aoc_device:s0 +/dev/acd-audio_rtp_tx u:object_r:aoc_device:s0 +/dev/acd-audio_rtp_rx u:object_r:aoc_device:s0 /dev/acd-sound_trigger u:object_r:aoc_device:s0 /dev/acd-hotword_notification u:object_r:aoc_device:s0 /dev/acd-hotword_pcm u:object_r:aoc_device:s0