From d94b7581e50615b985746d950d6b0e3fc8ec308e Mon Sep 17 00:00:00 2001 From: Dhina17 Date: Fri, 19 May 2023 23:54:14 +0530 Subject: [PATCH] sm6225-common: sepolicy: Use same label for all fps device Change-Id: Ib6551e19adcb188991846bac75ad637f0225e5a7 --- sepolicy/vendor/device.te | 4 +--- sepolicy/vendor/file_contexts | 6 +++--- sepolicy/vendor/hal_fingerprint_default.te | 4 +--- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/sepolicy/vendor/device.te b/sepolicy/vendor/device.te index 011fae4..5db4c83 100644 --- a/sepolicy/vendor/device.te +++ b/sepolicy/vendor/device.te @@ -1,7 +1,5 @@ # Fingerprint -type etsd_device, dev_type; -type focaltech_fp_device, dev_type; -type fpsensor_device, dev_type; +type fps_device, dev_type; # Moto partitions type vendor_hw_block_device, dev_type; diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index 5458e74..48e8b7e 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -43,9 +43,9 @@ /data/vendor/.fps(/.*)? u:object_r:fingerprint_vendor_data_file:s0 /data/vendor/focaltech(/.*)? u:object_r:fingerprint_vendor_data_file:s0 /data/vendor/fpc(/.*)? u:object_r:fingerprint_vendor_data_file:s0 -/dev/esfp0 u:object_r:etsd_device:s0 -/dev/focaltech_fp u:object_r:focaltech_fp_device:s0 -/dev/fpsensor u:object_r:fpsensor_device:s0 +/dev/esfp0 u:object_r:fps_device:s0 +/dev/focaltech_fp u:object_r:fps_device:s0 +/dev/fpsensor u:object_r:fps_device:s0 # Motobox /(vendor|system/vendor)/bin/motobox u:object_r:vendor_motobox_exec:s0 diff --git a/sepolicy/vendor/hal_fingerprint_default.te b/sepolicy/vendor/hal_fingerprint_default.te index cce2b22..06743d4 100644 --- a/sepolicy/vendor/hal_fingerprint_default.te +++ b/sepolicy/vendor/hal_fingerprint_default.te @@ -1,7 +1,5 @@ allow hal_fingerprint_default { - etsd_device - focaltech_fp_device - fpsensor_device + fps_device tee_device }: chr_file rw_file_perms;