From 59d1e4975ce46c4f13b8a8c6d4618d8a0d0f0504 Mon Sep 17 00:00:00 2001 From: Cosmin Tanislav Date: Mon, 18 Oct 2021 15:02:18 +0300 Subject: [PATCH] sm8350-common: sepolicy: allow camera hal to access camera sensor props --- sepolicy/vendor/hal_camera_default.te | 3 +++ sepolicy/vendor/property_contexts | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 sepolicy/vendor/hal_camera_default.te diff --git a/sepolicy/vendor/hal_camera_default.te b/sepolicy/vendor/hal_camera_default.te new file mode 100644 index 0000000..a5fa916 --- /dev/null +++ b/sepolicy/vendor/hal_camera_default.te @@ -0,0 +1,3 @@ +type vendor_camera_sensor_prop, property_type; + +set_prop(hal_camera_default, vendor_camera_sensor_prop) diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts index 372dd61..641b5fd 100644 --- a/sepolicy/vendor/property_contexts +++ b/sepolicy/vendor/property_contexts @@ -1,3 +1,7 @@ +# Camera +vendor.camera.sensor. u:object_r:vendor_camera_sensor_prop:s0 +ro.boot.camera.config u:object_r:vendor_camera_sensor_prop:s0 + # Fingerprint persist.vendor.sys.fp. u:object_r:vendor_fp_prop:s0 persist.vendor.sys.fp.info u:object_r:vendor_fp_info_prop:s0