android_device_lenovo_msm89.../sepolicy/vendor/file_contexts
Martijn Coenen a85558ea52 msm8937-common: Add selinux/private/service_contexts.
This makes sure that the remaining binder services
for radio end up in plat_service_contexts.

That in turn allows us to enforce that servicemanager
will only serve services from plat_service_contexts
on FULL_TREBLE devices.

Bug: 36866029
Test: boot, verify radio services still work
Change-Id: Ib67b3a03e5599484c5c4fb27a0f323a37dd51636
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-09 00:00:21 +08:00

30 lines
1.2 KiB
Text

# Biometric
/(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service\.xiaomi_msm8937 u:object_r:hal_fingerprint_msm8937_exec:s0
# Bluetooth
/(vendor|system/vendor)/bin/hci_qcomm_init u:object_r:bluetooth_loader_exec:s0
# Block devices
/dev/block/bootdevice/by-name/persist u:object_r:persist_block_device:s0
/dev/block/bootdevice/by-name/userdata u:object_r:userdata_block_device:s0
# Fpc Fingerprint
/data/fpc(/.*)? u:object_r:fpc_data_file:s0
/dev/socket/fpce(/.*)? u:object_r:fpce_socket:s0
/sys/devices/soc/soc:fpc1020(/.*)? u:object_r:fpc_sysfs:s0
# For Goodix fingerprint
/dev/gf66xx-spi u:object_r:gx_fpd_device:s0
/dev/ttyACM[0-9]* u:object_r:gx_fpd_device:s0
/dev/goodix_fp* u:object_r:gx_fpd_device:s0
/(vendor|system/vendor)/bin/gx_fpd u:object_r:gx_fpd_exec:s0
# Goodix Fingerprint data
/data/system/fingerprint(/.*)? u:object_r:gx_fpd_data_file:s0
/persist/data/gxfp(/.*)? u:object_r:gx_fpd_data_file:s0
# Ir
/dev/lirc[0-9]* u:object_r:lirc_device:s0
# Light
/sys/devices/soc/78b6000\.i2c/i2c-2/2-[0-9a-f]+/leds(/.*)? u:object_r:sysfs_leds:s0