From 32f2e4b0e7c7947cf419bb53fd9c2018ddcd287a Mon Sep 17 00:00:00 2001 From: Kris Chen Date: Fri, 25 Mar 2022 14:55:31 +0800 Subject: [PATCH] Allow hal_fingerprint_default to access sysfs_display Fix the following avc denial: avc: denied { read } for name="panel_name" dev="sysfs" ino=71133 scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:sysfs_display:s0 tclass=file permissive=0 Bug: 223687187 Test: build and test fingerprint on device. Change-Id: Ief1ccc7e2fa6b8b4dc1ecbd6d446cc49ee3936ce --- whitechapel_pro/hal_fingerprint_default.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/whitechapel_pro/hal_fingerprint_default.te b/whitechapel_pro/hal_fingerprint_default.te index 7d5f4f2c..fa03d984 100644 --- a/whitechapel_pro/hal_fingerprint_default.te +++ b/whitechapel_pro/hal_fingerprint_default.te @@ -21,3 +21,5 @@ allow hal_fingerprint_default block_device:dir search; # Allow fingerprint to access fwk_sensor_hwservice allow hal_fingerprint_default fwk_sensor_hwservice:hwservice_manager find; +# Allow fingerprint to read sysfs_display +allow hal_fingerprint_default sysfs_display:file r_file_perms;