sm8150-common: sepolicy: Label fingerprint-related properties

Change-Id: I76c5fbd2998a071387e47231d3f135ba02943ca3
This commit is contained in:
Scott Warner 2019-07-10 13:36:59 -04:00 committed by LuK1337
parent f7097809b9
commit e375dcc3b3
3 changed files with 9 additions and 0 deletions

View File

@ -22,3 +22,6 @@ allow hal_fingerprint_default proc_touchpanel:file rw_file_perms;
# Allow hal_fingerprint_default access to sysfs nodes
allow hal_fingerprint_default sysfs_fod:file rw_file_perms;
allow hal_fingerprint_default sysfs_aod:file r_file_perms;
# Allow hal_fingerprint_default to set vendor_fingerprint_prop
set_prop(hal_fingerprint_default, vendor_fingerprint_prop)

2
sepolicy/vendor/property.te vendored Normal file
View File

@ -0,0 +1,2 @@
# Fingerprint properties
type vendor_fingerprint_prop, property_type;

View File

@ -1,3 +1,7 @@
# Camera
vendor.camera. u:object_r:vendor_camera_prop:s0
camera.OPpictureId u:object_r:vendor_camera_prop:s0
# Fingerprint
persist.vendor.sys.fp u:object_r:vendor_fingerprint_prop:s0
persist.vendor.oem.fp u:object_r:vendor_fingerprint_prop:s0