From 32eb479e66702db4c8f73701caca738630919eee Mon Sep 17 00:00:00 2001 From: Eino-Ville Talvala Date: Thu, 4 Jan 2018 17:24:22 -0800 Subject: [PATCH] hal_camera: Allow access to sensor calibration file To allow the camera HAL to export lens calibration data measured for tango_core, it needs access to the same calibration file. Bug: 70565622 Bug: 63629224 Test: Builds Change-Id: Ia891dc442e1f01b827ba8533f4d77f26e1f61b3b --- sepolicy/vendor/hal_camera.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sepolicy/vendor/hal_camera.te b/sepolicy/vendor/hal_camera.te index 38edfc39..05005c22 100644 --- a/sepolicy/vendor/hal_camera.te +++ b/sepolicy/vendor/hal_camera.te @@ -45,3 +45,7 @@ allow hal_camera sysfs_easel:file rw_file_perms; # access hexagon allow hal_camera qdsp_device:chr_file r_file_perms; + +# lens calibration file +allow hal_camera persist_sensors_file:dir search; +allow hal_camera persist_sensors_file:file { getattr open read };