From 6b25e7527caa628e7b757c3edd7243854e36a96c Mon Sep 17 00:00:00 2001 From: eddielan Date: Fri, 12 Jan 2024 08:18:53 +0000 Subject: [PATCH] fingerprint: Allow fps to access wakeup node 01-12 08:01:43.652 1852 1852 W android.hardwar: type=1400 audit(0.0:38): avc: denied { write } for name="wakeup_enable" dev="sysfs" ino=97986 scontext=u:r:hal_fingerprint_capacitance:s0 tcontext=u:object_r:sysfs_wakeup:s0 tclass=file permissive=0 Bug: 319578405 Test: Build pass & check on device Change-Id: I31380020ac5fe61bb976954d03a9449bbe6c287d --- vendor/hal_fingerprint_capacitance.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vendor/hal_fingerprint_capacitance.te b/vendor/hal_fingerprint_capacitance.te index 06a1ac1..21a86c7 100644 --- a/vendor/hal_fingerprint_capacitance.te +++ b/vendor/hal_fingerprint_capacitance.te @@ -10,6 +10,9 @@ allow hal_fingerprint_capacitance tee_device:chr_file rw_file_perms; allow hal_fingerprint_capacitance sysfs_fingerprint:dir r_dir_perms; allow hal_fingerprint_capacitance sysfs_fingerprint:file rw_file_perms; +# allow fingerprint to access wakeup node +allow hal_fingerprint_capacitance sysfs_wakeup:file rw_file_perms; + # allow fingerprint to access power hal hal_client_domain(hal_fingerprint_capacitance, hal_power);