summaryrefslogtreecommitdiff
path: root/aoc
diff options
context:
space:
mode:
authorJayachandran C <jayachandranc@google.com>2023-02-02 22:25:03 +0000
committerJayachandran C <jayachandranc@google.com>2023-02-15 21:33:57 +0000
commitcdcd803b5a088ffd189a7c3ee8d206e8368ab74c (patch)
tree19141fe9fb5ce1531d803c5deca1350e6b0d2f52 /aoc
parent777534e5fad4047d55620aa0f14b1807d4d87bd3 (diff)
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
Diffstat (limited to 'aoc')
-rw-r--r--aoc/sepolicy/file_contexts2
1 files changed, 2 insertions, 0 deletions
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