From 671b8714d1cf3a7382ad409080d46378a8905498 Mon Sep 17 00:00:00 2001 From: Rajani Ranjan Date: Fri, 6 Dec 2024 05:10:49 +0000 Subject: [PATCH] Add graphics related sepolicy for hal_sensors Fix VTS sensors issues. -DirectChannelGralloc/0_android_hardware_sensors_ISensors_default Test Done: run vts -m VtsAidlHalSensorsTargetTest Tracked-On: OAM-128294 Signed-off-by: Rajani Ranjan --- sensors/mediation/sensor_hal_default.te | 1 + 1 file changed, 1 insertion(+) diff --git a/sensors/mediation/sensor_hal_default.te b/sensors/mediation/sensor_hal_default.te index bc2c23be..a85a7e75 100644 --- a/sensors/mediation/sensor_hal_default.te +++ b/sensors/mediation/sensor_hal_default.te @@ -5,3 +5,4 @@ allowxperm hal_sensors_default self:socket ioctl unpriv_sock_ioctls; allow hal_sensors_default serial_device:chr_file rw_file_perms; allow hal_sensors_default self:vsock_socket { create read write connect getopt setopt }; +allow hal_sensors_default hal_graphics_allocator_default_tmpfs:file { read write };