sm8150-common: sepolicy: Label sensors props

Change-Id: I8c721ebec133e81ab996bf4112442236fafd2158
This commit is contained in:
LuK1337 2019-07-10 21:42:23 +02:00
parent e387e5765f
commit 6ea1091eb9
3 changed files with 13 additions and 0 deletions

View File

@ -33,3 +33,6 @@ r_dir_file(hal_sensors_default, sysfs_graphics)
# Allow hal_sensors_default to read motor sysfs nodes
r_dir_file(hal_sensors_default, sysfs_motor)
# Allow hal_sensors_default to get vendor_sensors_prop
get_prop(hal_sensors_default, vendor_sensors_prop)

View File

@ -1,2 +1,3 @@
type vendor_fingerprint_prop, property_type;
type vendor_nfc_prop, property_type;
type vendor_sensors_prop, property_type;

View File

@ -8,3 +8,12 @@ persist.vendor.oem.fp u:object_r:vendor_fingerprint_prop:s0
# NFC
ro.vendor.nfc.notify_tp u:object_r:vendor_nfc_prop:s0
# Sensors
persist.vendor.debug.sensors.hal u:object_r:vendor_sensors_prop:s0
persist.vendor.naruto.light.support u:object_r:vendor_sensors_prop:s0
persist.vendor.sensors.diag_buffer_mode u:object_r:vendor_sensors_prop:s0
persist.vendor.sensors.enable.mag_filter u:object_r:vendor_sensors_prop:s0
persist.vendor.sensors.light.location_x u:object_r:vendor_sensors_prop:s0
persist.vendor.sensors.light.location_y u:object_r:vendor_sensors_prop:s0
persist.vendor.sensors.proximity.using_motion u:object_r:vendor_sensors_prop:s0