From 28ddd3bf9fcfa679679ad3580daf6e2517fe8ee7 Mon Sep 17 00:00:00 2001 From: Chris Kuiper Date: Thu, 24 Mar 2022 17:55:43 -0700 Subject: [PATCH] Allow Sensor HAL access to display sysfs panel_name file. Bug: 208926536 Test: Accessed the display sysfs from sensor HAL correctly. Change-Id: Ide86813de20a1240f8ac55322b017329f30b296e --- usf/sensor_hal.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usf/sensor_hal.te b/usf/sensor_hal.te index ac9d5c2d..bda44c9f 100644 --- a/usf/sensor_hal.te +++ b/usf/sensor_hal.te @@ -59,6 +59,9 @@ allow hal_sensors_default hidraw_device:chr_file rw_file_perms; allow hal_sensors_default hal_pixel_display_service:service_manager find; binder_call(hal_sensors_default, hal_graphics_composer_default) +# Allow sensor HAL to access to display sysfs. +allow hal_sensors_default sysfs_display:file r_file_perms; + # # Suez type enforcements. #