Skip to content
Snippets Groups Projects
Commit a2519226 authored by Steven Moreland's avatar Steven Moreland
Browse files

haldomain: add hwbinder_use

All hals need to use hwbinder.

Test: no additional denials
Bug: 34180936
Change-Id: Ie92cdbd79fc75062c4afa4cda53cb57ccde7e370
parent 615b60bd
No related branches found
No related tags found
No related merge requests found
Showing
with 2 additions and 49 deletions
### ###
### Rules for all HAL implementations ### Rules for all HAL implementations
### ###
hwbinder_use(haldomain)
...@@ -3,6 +3,3 @@ type hal_allocator, domain; ...@@ -3,6 +3,3 @@ type hal_allocator, domain;
hal_impl_domain(hal_allocator) hal_impl_domain(hal_allocator)
type hal_allocator_exec, exec_type, file_type; type hal_allocator_exec, exec_type, file_type;
# hwbinder access
hwbinder_use(hal_allocator)
hwbinder_use(hal_audio)
binder_use(hal_audio) binder_use(hal_audio)
binder_call(hal_audio, audioserver) binder_call(hal_audio, audioserver)
binder_call(hal_audio, system_server) binder_call(hal_audio, system_server)
......
# hwbinder access
hwbinder_use(hal_bluetooth)
r_dir_file(hal_bluetooth, system_file) r_dir_file(hal_bluetooth, system_file)
# call into the Bluetooth process (callbacks) # call into the Bluetooth process (callbacks)
......
...@@ -4,8 +4,5 @@ hal_impl_domain(hal_boot) ...@@ -4,8 +4,5 @@ hal_impl_domain(hal_boot)
type hal_boot_exec, exec_type, file_type; type hal_boot_exec, exec_type, file_type;
# hwbinder access
hwbinder_use(hal_boot)
# call into system_server process (callbacks) # call into system_server process (callbacks)
binder_call(hal_boot, system_server) binder_call(hal_boot, system_server)
# hwbinder access
hwbinder_use(hal_contexthub)
# call into system_server process (callbacks) # call into system_server process (callbacks)
binder_call(hal_contexthub, system_server) binder_call(hal_contexthub, system_server)
# hwbinder access
hwbinder_use(hal_dumpstate)
# call into dumpstate process (callbacks) # call into dumpstate process (callbacks)
binder_call(hal_dumpstate, dumpstate) binder_call(hal_dumpstate, dumpstate)
......
hwbinder_use(hal_fingerprint)
# Scan through /system/lib64/hw looking for installed HALs # Scan through /system/lib64/hw looking for installed HALs
allow hal_fingerprint system_file:dir r_dir_perms; allow hal_fingerprint system_file:dir r_dir_perms;
......
# hwbinder access
hwbinder_use(hal_gatekeeper)
# call into gatekeeperd process (callbacks) # call into gatekeeperd process (callbacks)
binder_call(hal_gatekeeper, gatekeeperd) binder_call(hal_gatekeeper, gatekeeperd)
......
# hwbinder access
hwbinder_use(hal_gnss)
binder_call(hal_gnss, system_server) binder_call(hal_gnss, system_server)
# hwbinder access
hwbinder_use(hal_graphics_allocator)
# GPU device access # GPU device access
allow hal_graphics_allocator gpu_device:chr_file rw_file_perms; allow hal_graphics_allocator gpu_device:chr_file rw_file_perms;
allow hal_graphics_allocator ion_device:chr_file r_file_perms; allow hal_graphics_allocator ion_device:chr_file r_file_perms;
# HwBinder access
hwbinder_use(hal_graphics_composer)
# IComposerCallback # IComposerCallback
binder_call(hal_graphics_composer, surfaceflinger) binder_call(hal_graphics_composer, surfaceflinger)
......
# hwbinder access
hwbinder_use(hal_health)
# call into healthd for callbacks # call into healthd for callbacks
binder_call(hal_health, healthd) binder_call(hal_health, healthd)
......
# hwbinder access
hwbinder_use(hal_ir)
# call into system_server process (callbacks) # call into system_server process (callbacks)
binder_call(hal_ir, system_server) binder_call(hal_ir, system_server)
# hwbinder access
hwbinder_use(hal_light)
# call into system_server process (callbacks) # call into system_server process (callbacks)
binder_call(hal_light, system_server) binder_call(hal_light, system_server)
# hwbinder access
hwbinder_use(hal_memtrack);
# hwbinder access
hwbinder_use(hal_nfc)
# call into NFC process (callbacks) # call into NFC process (callbacks)
binder_call(hal_nfc, nfc) binder_call(hal_nfc, nfc)
......
# hwbinder access
hwbinder_use(hal_power);
# hwbinder access
hwbinder_use(hal_sensors)
# Perform HwBinder IPC. # Perform HwBinder IPC.
hwbinder_use(hal_telephony)
binder_call(hal_telephony, radio) binder_call(hal_telephony, radio)
binder_call(hal_telephony, bluetooth) binder_call(hal_telephony, bluetooth)
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