Create sepolicy for Wahoo health HAL service

Bug: 68388678
Test: vts-tradefed run vts -m VtsHalHealthV2_0

Change-Id: I4d7214c760948bc07cfdf3143526d137718e4f9a
This commit is contained in:
Hridya Valsaraju
2017-12-20 12:49:31 -08:00
parent c5a707bc2f
commit dd69b2ca0c
3 changed files with 7 additions and 1 deletions

View File

@@ -176,7 +176,7 @@ PRODUCT_COPY_FILES += \
# health HAL
PRODUCT_PACKAGES += \
android.hardware.health@2.0-service
android.hardware.health@2.0-service.wahoo
# Keymaster 4 (software only)
PRODUCT_PACKAGES += \

View File

@@ -183,6 +183,7 @@
/vendor/bin/hw/android\.hardware\.drm@1\.0-service.widevine u:object_r:hal_drm_widevine_exec:s0
/vendor/bin/hw/android\.hardware\.vibrator@1\.1-service.wahoo u:object_r:hal_vibrator_default_exec:s0
/vendor/bin/hw/android\.hardware\.health@2\.0-service.wahoo u:object_r:hal_health_default_exec:s0
/vendor/bin/hw/android\.hardware\.keymaster@3\.0-service-qti u:object_r:hal_keymaster_qti_exec:s0
/vendor/bin/hw/android\.hardware\.gatekeeper@1\.0-service-qti u:object_r:hal_gatekeeper_qti_exec:s0
/vendor/bin/hw/android\.hardware\.gnss@1\.0-service-qti u:object_r:hal_gnss_qti_exec:s0

View File

@@ -1 +1,6 @@
r_dir_file(hal_health_default, sysfs_msm_subsys)
allow hal_health_default debugfs_ufs:dir search;
allow hal_health_default sysfs_scsi_devices_0000:dir search;
allow hal_health_default debugfs_ufs:file { getattr open read };
allow hal_health_default sysfs_scsi_devices_0000:file { getattr open read };