diff --git a/healthd.te b/healthd.te index 63efd059d155676f24bb630a44f6c92888f98431..62a20e8bc9eee91d1154a312d6ca6e66ed2b307f 100644 --- a/healthd.te +++ b/healthd.te @@ -15,6 +15,10 @@ binder_use(healthd) binder_service(healthd) binder_call(healthd, system_server) +# Write to state file. +# TODO: Split into a separate type? +allow healthd sysfs:file write; + ### ### healthd: charger mode ### @@ -23,5 +27,6 @@ allow healthd graphics_device:dir r_dir_perms; allow healthd graphics_device:chr_file rw_file_perms; allow healthd input_device:dir r_dir_perms; allow healthd input_device:chr_file r_file_perms; +allow healthd tty_device:chr_file rw_file_perms; allow healthd ashmem_device:chr_file execute; allow healthd self:process execmem;