mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 07:50:47 +00:00
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:
@@ -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 += \
|
||||
|
||||
1
sepolicy/vendor/file_contexts
vendored
1
sepolicy/vendor/file_contexts
vendored
@@ -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
|
||||
|
||||
5
sepolicy/vendor/hal_health_default.te
vendored
5
sepolicy/vendor/hal_health_default.te
vendored
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user