From 7054110441d661b00ea987cf5f10e8a81ef249b0 Mon Sep 17 00:00:00 2001 From: timmyli Date: Wed, 21 Sep 2022 21:15:54 +0000 Subject: [PATCH] Allow camera_hal to access always on compute device As a part of RLSRefactor efforst, we need to access libusf from within camera_hal. Bug: 248089742 Test: Compiles, Manual test that we can access aoc device Change-Id: Ie79a2ee544067de69f402e2dd5ce6e55c200be13 --- whitechapel_pro/hal_camera_default.te | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/whitechapel_pro/hal_camera_default.te b/whitechapel_pro/hal_camera_default.te index 437060ea..ba2b5304 100644 --- a/whitechapel_pro/hal_camera_default.te +++ b/whitechapel_pro/hal_camera_default.te @@ -98,4 +98,7 @@ dontaudit hal_camera_default system_data_file:dir { search }; # google3 prebuilts attempt to connect to the wrong trace socket, ignore them. dontaudit hal_camera_default traced:unix_stream_socket { connectto }; -dontaudit hal_camera_default traced_producer_socket:sock_file { write }; \ No newline at end of file +dontaudit hal_camera_default traced_producer_socket:sock_file { write }; + +# Allow access to always-on compute device node +allow hal_camera_default aoc_device:chr_file rw_file_perms;