haldomain: add hwbinder_use
All hals need to use hwbinder. Test: no additional denials Bug: 34180936 Change-Id: Ie92cdbd79fc75062c4afa4cda53cb57ccde7e370
This commit is contained in:
parent
615b60bd54
commit
a25192262b
24 changed files with 2 additions and 61 deletions
|
@ -1,3 +1,5 @@
|
||||||
###
|
###
|
||||||
### Rules for all HAL implementations
|
### Rules for all HAL implementations
|
||||||
###
|
###
|
||||||
|
|
||||||
|
hwbinder_use(haldomain)
|
||||||
|
|
|
@ -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)
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
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)
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
# 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)
|
||||||
|
|
||||||
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)
|
||||||
|
|
|
@ -1,5 +1,2 @@
|
||||||
# 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)
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
# 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)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
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;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
# 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)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1 @@
|
||||||
# hwbinder access
|
|
||||||
hwbinder_use(hal_gnss)
|
|
||||||
|
|
||||||
binder_call(hal_gnss, system_server)
|
binder_call(hal_gnss, system_server)
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
# 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;
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
# HwBinder access
|
|
||||||
hwbinder_use(hal_graphics_composer)
|
|
||||||
# IComposerCallback
|
# IComposerCallback
|
||||||
binder_call(hal_graphics_composer, surfaceflinger)
|
binder_call(hal_graphics_composer, surfaceflinger)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
# 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)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,2 @@
|
||||||
# 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)
|
||||||
|
|
|
@ -1,5 +1,2 @@
|
||||||
# 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)
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
# hwbinder access
|
|
||||||
hwbinder_use(hal_memtrack);
|
|
|
@ -1,6 +1,3 @@
|
||||||
# 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)
|
||||||
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
# hwbinder access
|
|
||||||
hwbinder_use(hal_power);
|
|
|
@ -1,2 +0,0 @@
|
||||||
# hwbinder access
|
|
||||||
hwbinder_use(hal_sensors)
|
|
|
@ -1,5 +1,3 @@
|
||||||
# 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)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,2 @@
|
||||||
# hwbinder access
|
|
||||||
hwbinder_use(hal_thermal)
|
|
||||||
|
|
||||||
# call into system_server process (callbacks)
|
# call into system_server process (callbacks)
|
||||||
binder_call(hal_thermal, system_server)
|
binder_call(hal_thermal, system_server)
|
||||||
|
|
|
@ -1,5 +1,2 @@
|
||||||
# hwbinder access
|
|
||||||
hwbinder_use(hal_vibrator)
|
|
||||||
|
|
||||||
# vibrator sysfs rw access
|
# vibrator sysfs rw access
|
||||||
allow hal_vibrator sysfs_vibrator:file rw_file_perms;
|
allow hal_vibrator sysfs_vibrator:file rw_file_perms;
|
||||||
|
|
|
@ -1,5 +1,2 @@
|
||||||
# hwbinder access
|
|
||||||
hwbinder_use(hal_vr)
|
|
||||||
|
|
||||||
# call into system_server process
|
# call into system_server process
|
||||||
binder_call(hal_vr, system_server)
|
binder_call(hal_vr, system_server)
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
## hwbinder access
|
|
||||||
hwbinder_use(hal_wifi)
|
|
||||||
|
|
||||||
## call into system_server process (for invoking callbacks)
|
## call into system_server process (for invoking callbacks)
|
||||||
binder_call(hal_wifi, system_server)
|
binder_call(hal_wifi, system_server)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue