common: Allow fingerprint HAL to read fingerprint sysfs
authorAndreas Schneider <asn@cryptomilk.org>
Sun, 22 Mar 2020 12:45:02 +0000 (13:45 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 1 Apr 2020 05:43:22 +0000 (07:43 +0200)
Change-Id: Ib58c3c5f39fc0dd13f788a7caadf00706609daaf

common/vendor/hal_fingerprint_default.te

index db463db4ae7fb7c95c531b5fe9d18c191faa2bf2..cce1395914e50ebde5d051b4e1b548eca47e2530 100644 (file)
@@ -8,3 +8,7 @@ file_type_auto_trans(hal_fingerprint_default, vendor_data_file, biometrics_vendo
 
 # /data/vendor/biometrics/*
 allow hal_fingerprint_default biometrics_vendor_data_file:file create_file_perms;
+
+# /sys/class/fingerprint/
+allow hal_fingerprint_default sysfs_fingerprint:dir r_dir_perms;
+allow hal_fingerprint_default sysfs_fingerprint:file r_file_perms;