From ac69b5cccff2b4769e1ad12d4428de4748138285 Mon Sep 17 00:00:00 2001 From: PIPIPIG233666 Date: Thu, 2 Jan 2020 19:14:58 +0100 Subject: sdm660-common: Address fp denials Change-Id: Ie2abb5480d3442e5f64d532561ce657362f9f081 --- sepolicy/vendor/hal_fingerprint_sdm660.te | 4 ++-- sepolicy/vendor/hwservice_contexts | 8 ++++++-- sepolicy/vendor/property_contexts | 1 + 3 files changed, 9 insertions(+), 4 deletions(-) (limited to 'sepolicy') diff --git a/sepolicy/vendor/hal_fingerprint_sdm660.te b/sepolicy/vendor/hal_fingerprint_sdm660.te index 0bbf9d7..6cef299 100644 --- a/sepolicy/vendor/hal_fingerprint_sdm660.te +++ b/sepolicy/vendor/hal_fingerprint_sdm660.te @@ -25,14 +25,14 @@ binder_use(hal_fingerprint_sdm660) r_dir_file(hal_fingerprint_sdm660, firmware_file) add_service(hal_fingerprint_sdm660, goodixvnd_service) -add_hwservice(hal_fingerprint_sdm660, goodixhw_service) allow hal_fingerprint_sdm660 vndbinder_device:chr_file ioctl; -get_prop(hal_fingerprint_sdm660, hal_fingerprint_prop) set_prop(hal_fingerprint_sdm660, hal_fingerprint_prop) vndbinder_use(hal_fingerprint_sdm660) dontaudit hal_fingerprint_sdm660 { media_rw_data_file sdcardfs}:dir search; dontaudit hal_fingerprint_sdm660 media_rw_data_file:dir { read open }; +dontaudit hal_fingerprint_sdm660 hal_perf_hwservice:hwservice_manager find; +dontaudit hal_fingerprint_sdm660 hal_fingerprint_hwservice:hwservice_manager add; diff --git a/sepolicy/vendor/hwservice_contexts b/sepolicy/vendor/hwservice_contexts index 14bb48b..1f1df2d 100644 --- a/sepolicy/vendor/hwservice_contexts +++ b/sepolicy/vendor/hwservice_contexts @@ -1,3 +1,7 @@ -vendor.goodix.hardware.fingerprint::IGoodixBiometricsFingerprint u:object_r:goodixhw_service:s0 -com.fingerprints.extension::IFingerprintNavigation u:object_r:fpnav_hwservice:s0 +vendor.goodix.hardware.fingerprint::IGoodixBiometricsFingerprint u:object_r:hal_fingerprint_hwservice:s0 +com.fingerprints.extension::IFingerprintEngineering u:object_r:hal_fingerprint_hwservice:s0 +com.fingerprints.extension::IFingerprintSensorTest u:object_r:hal_fingerprint_hwservice:s0 +com.fingerprints.extension::IFingerprintNavigation u:object_r:hal_fingerprint_hwservice:s0 +com.fingerprints.extension::IFingerprintCalibration u:object_r:hal_fingerprint_hwservice:s0 +com.fingerprints.extension::IFingerprintSenseTouch u:object_r:hal_fingerprint_hwservice:s0 vendor.xiaomi.hardware.mlipay::IMlipayService u:object_r:hal_mlipay_hwservice:s0 diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts index 037565e..b1a0c21 100644 --- a/sepolicy/vendor/property_contexts +++ b/sepolicy/vendor/property_contexts @@ -1,5 +1,6 @@ persist.camera. u:object_r:camera_prop:s0 persist.vendor.camera. u:object_r:camera_prop:s0 +ro.boot.fpsensor u:object_r:hal_fingerprint_prop:s0 sys.fp.goodix u:object_r:hal_fingerprint_prop:s0 sys.fp.vendor u:object_r:hal_fingerprint_prop:s0 persist.sys.fp.info u:object_r:hal_fingerprint_prop:s0 -- cgit v1.2.3