From ecd597b98adf0c6c0c3807708760b61fae57bfba Mon Sep 17 00:00:00 2001 From: timmyli Date: Fri, 14 Oct 2022 01:55:04 +0000 Subject: [PATCH] Add aoc_device access to P21 devices. Camera hal Since we plan to apply rls refactor to P21 devices as well. Add access to camera_hal to aoc_device for these devices. Bug: 253493159 Test: Compiles Change-Id: I43728c723e0cfc7cdde5377260af6075d4672e7b --- whitechapel/vendor/google/hal_camera_default.te | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/whitechapel/vendor/google/hal_camera_default.te b/whitechapel/vendor/google/hal_camera_default.te index 2e36e4a8..d78cf7ad 100644 --- a/whitechapel/vendor/google/hal_camera_default.te +++ b/whitechapel/vendor/google/hal_camera_default.te @@ -103,4 +103,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;