Skip to content
Snippets Groups Projects
Commit 60e8886c authored by Sandeep Patil's avatar Sandeep Patil
Browse files

health: add sepolicy for health hal service


Test: tested with default health HAL on angler running as service.
Bug: b/32754732

Change-Id: Ie0b70d43cb23cd0878e1b7b99b9bebdbd70d17c7
Signed-off-by: default avatarSandeep Patil <sspatil@google.com>
(cherry picked from commit ef62fd91)
parent 82467a95
No related branches found
No related tags found
No related merge requests found
...@@ -233,6 +233,7 @@ ...@@ -233,6 +233,7 @@
/system/bin/hw/android\.hardware\.boot@1\.0-service u:object_r:hal_boot_exec:s0 /system/bin/hw/android\.hardware\.boot@1\.0-service u:object_r:hal_boot_exec:s0
/system/bin/hw/android\.hardware\.graphics\.allocator@2\.0-service u:object_r:hal_graphics_allocator_default_exec:s0 /system/bin/hw/android\.hardware\.graphics\.allocator@2\.0-service u:object_r:hal_graphics_allocator_default_exec:s0
/system/bin/hw/android\.hardware\.graphics\.composer@2\.1-service u:object_r:hal_graphics_composer_default_exec:s0 /system/bin/hw/android\.hardware\.graphics\.composer@2\.1-service u:object_r:hal_graphics_composer_default_exec:s0
/system/bin/hw/android\.hardware\.health@1\.0-service u:object_r:hal_health_exec:s0
/system/bin/hw/android\.hardware\.ir@1\.0-service u:object_r:hal_ir_default_exec:s0 /system/bin/hw/android\.hardware\.ir@1\.0-service u:object_r:hal_ir_default_exec:s0
/system/bin/hw/android\.hardware\.light@2\.0-service u:object_r:hal_light_default_exec:s0 /system/bin/hw/android\.hardware\.light@2\.0-service u:object_r:hal_light_default_exec:s0
/system/bin/hw/android\.hardware\.memtrack@1\.0-service u:object_r:hal_memtrack_default_exec:s0 /system/bin/hw/android\.hardware\.memtrack@1\.0-service u:object_r:hal_memtrack_default_exec:s0
......
# may be started by init
init_daemon_domain(hal_health)
# health info abstraction
type hal_health, domain;
type hal_health_exec, exec_type, file_type;
# hwbinder access
hwbinder_use(hal_health)
# call into healthd for callbacks
binder_call(hal_health, healthd)
# Read access to system files for HALs in
# /{system,vendor,odm}/lib[64]/hw/ in order
# to be able to open the hal implementation .so files
r_dir_file(hal_health, system_file)
...@@ -24,6 +24,7 @@ binder_use(healthd) ...@@ -24,6 +24,7 @@ binder_use(healthd)
binder_service(healthd) binder_service(healthd)
binder_call(healthd, system_server) binder_call(healthd, system_server)
binder_call(healthd, hwservicemanager) binder_call(healthd, hwservicemanager)
binder_call(healthd, hal_health)
allow healthd sysfs_batteryinfo:file r_file_perms; allow healthd sysfs_batteryinfo:file r_file_perms;
allow healthd batteryproperties_service:service_manager { add find }; allow healthd batteryproperties_service:service_manager { add find };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment