From 49a4d5ce06e3499a9605135894c5e273edc2e820 Mon Sep 17 00:00:00 2001 From: DarkJoker360 Date: Fri, 22 Jan 2021 10:42:34 +0100 Subject: [PATCH] Address Huawei fingerprint denials * Fixes fingerprint enrollment issues on P vendor devices. --- sepolicy/huawei.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sepolicy/huawei.te b/sepolicy/huawei.te index b9e619b..2a3dc32 100644 --- a/sepolicy/huawei.te +++ b/sepolicy/huawei.te @@ -5,6 +5,10 @@ type teecd_data_file, file_type; type dmd_device, file_type; allow hal_fingerprint_server dmd_device:chr_file rw_file_perms; allow hal_fingerprint_server sysfs:file rw_file_perms; +allow tee hal_fingerprint_default:process { getattr }; +allow tee teecd_data_file:dir { search write getattr add_name }; +allow tee teecd_data_file:file { read write create getattr open }; +allow tee system_data_file:dir { getattr }; type oeminfo_nvm, domain; type oeminfo_nvm_device, file_type;