From 31981dfaea45d12bc5ef5e577aece0ff9f508949 Mon Sep 17 00:00:00 2001 From: Robb Glasser Date: Wed, 8 Jun 2022 14:43:52 -0700 Subject: [PATCH] Allow sensors HAL to rw the sensors registry. The sensors HAL needs full permissions to read and write the sensors registry for things like runtime calibration. Bug: 227695036 Test: Denial goes away. Change-Id: I5ccec3497219acca7c172c1cb0cf1d070996b42b --- whitechapel_pro/hal_sensors_default.te | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whitechapel_pro/hal_sensors_default.te b/whitechapel_pro/hal_sensors_default.te index 4e1b8ca1..a645b502 100644 --- a/whitechapel_pro/hal_sensors_default.te +++ b/whitechapel_pro/hal_sensors_default.te @@ -30,8 +30,8 @@ allow hal_sensors_default persist_sensor_reg_file:file r_file_perms; r_dir_file(hal_sensors_default, persist_camera_file) # Allow creation and writing of sensor registry data files. -allow hal_sensors_default sensor_reg_data_file:dir r_dir_perms; -allow hal_sensors_default sensor_reg_data_file:file r_file_perms; +allow hal_sensors_default sensor_reg_data_file:dir rw_dir_perms; +allow hal_sensors_default sensor_reg_data_file:file create_file_perms; # Allow access to the display info for ALS. allow hal_sensors_default sysfs_display:file rw_file_perms;