diff --git a/private/hal_health_default.te b/private/hal_health_default.te index fb2397325dacb4680b99dbdc5fa247e9b8a5dafd..e853fb6f1175da8a5d39c6c3086d5fff08ee4369 100644 --- a/private/hal_health_default.te +++ b/private/hal_health_default.te @@ -3,8 +3,3 @@ type hal_health_default, hal_health, domain; type hal_health_default_exec, exec_type, file_type; init_daemon_domain(hal_health_default) - -# 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) diff --git a/public/hal_health.te b/public/hal_health.te index 226409f4b81f532d3c1f4b3e49eb1869b7f65540..c6391b810123177a1238edda0f79a98525bcf45c 100644 --- a/public/hal_health.te +++ b/public/hal_health.te @@ -3,3 +3,8 @@ 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)