diff --git a/private/haldomain.te b/private/haldomain.te index 511f78dc9c28f3e30862abcc0cd838cb1d52b547..a8fa1a2165d6b907ecd2ed6e92ac4d20e52172a9 100644 --- a/private/haldomain.te +++ b/private/haldomain.te @@ -1,3 +1,5 @@ ### ### Rules for all HAL implementations ### + +hwbinder_use(haldomain) diff --git a/public/hal_allocator.te b/public/hal_allocator.te index a312e598f6f0fed2bb967dc78937e655401d7346..cab0145430b3c5545b6ad5825886d8ca054dbb2b 100644 --- a/public/hal_allocator.te +++ b/public/hal_allocator.te @@ -3,6 +3,3 @@ type hal_allocator, domain; hal_impl_domain(hal_allocator) type hal_allocator_exec, exec_type, file_type; - -# hwbinder access -hwbinder_use(hal_allocator) diff --git a/public/hal_audio.te b/public/hal_audio.te index 2dcbeb874840809c3adec80bb3dd61c5eba42fe8..15d0e414ac7fa78b29a54200798fada58ab4846d 100644 --- a/public/hal_audio.te +++ b/public/hal_audio.te @@ -1,4 +1,3 @@ -hwbinder_use(hal_audio) binder_use(hal_audio) binder_call(hal_audio, audioserver) binder_call(hal_audio, system_server) diff --git a/public/hal_bluetooth.te b/public/hal_bluetooth.te index d06147137fd1a4ab22e206eafb764517136b00a4..a3497a7543dc830fa5d8e7d63ebb4f103ece9599 100644 --- a/public/hal_bluetooth.te +++ b/public/hal_bluetooth.te @@ -1,6 +1,3 @@ -# hwbinder access -hwbinder_use(hal_bluetooth) - r_dir_file(hal_bluetooth, system_file) # call into the Bluetooth process (callbacks) diff --git a/public/hal_boot.te b/public/hal_boot.te index 6688f7fdb8ffdcbde0afd5fd7c70a896c6e411cf..4e7ba9e9eac7debbfb7cb0f8b2c84f39b64c3ba3 100644 --- a/public/hal_boot.te +++ b/public/hal_boot.te @@ -4,8 +4,5 @@ hal_impl_domain(hal_boot) type hal_boot_exec, exec_type, file_type; -# hwbinder access -hwbinder_use(hal_boot) - # call into system_server process (callbacks) binder_call(hal_boot, system_server) diff --git a/public/hal_contexthub.te b/public/hal_contexthub.te index 9d3685b52c7ec313366d92c8ecead5d3585e7c78..d991e9dfef10076d00fc88a58b3b68b64d9f1580 100644 --- a/public/hal_contexthub.te +++ b/public/hal_contexthub.te @@ -1,5 +1,2 @@ -# hwbinder access -hwbinder_use(hal_contexthub) - # call into system_server process (callbacks) binder_call(hal_contexthub, system_server) diff --git a/public/hal_dumpstate.te b/public/hal_dumpstate.te index 7884e38fd6f3bb75ca5f93c342006b9aed70a121..55e34635e321888ea5196bedf569aacb68e0a2b0 100644 --- a/public/hal_dumpstate.te +++ b/public/hal_dumpstate.te @@ -1,6 +1,3 @@ -# hwbinder access -hwbinder_use(hal_dumpstate) - # call into dumpstate process (callbacks) binder_call(hal_dumpstate, dumpstate) diff --git a/public/hal_fingerprint.te b/public/hal_fingerprint.te index 426b73ad27e574d34b69c277ba47a00b5492e9da..3d8a78deeb737a33805a533b8212e09a32a0b7b6 100644 --- a/public/hal_fingerprint.te +++ b/public/hal_fingerprint.te @@ -1,5 +1,3 @@ -hwbinder_use(hal_fingerprint) - # Scan through /system/lib64/hw looking for installed HALs allow hal_fingerprint system_file:dir r_dir_perms; diff --git a/public/hal_gatekeeper.te b/public/hal_gatekeeper.te index 27912b7652655fb1e03e936be9a613bd285b6804..a17dbcd568daceab25020a52a899770773dd42de 100644 --- a/public/hal_gatekeeper.te +++ b/public/hal_gatekeeper.te @@ -1,6 +1,3 @@ -# hwbinder access -hwbinder_use(hal_gatekeeper) - # call into gatekeeperd process (callbacks) binder_call(hal_gatekeeper, gatekeeperd) diff --git a/public/hal_gnss.te b/public/hal_gnss.te index a883e395a4cbb866e56b4d6b5e0b320e39a55237..753791bbff734bfb94dee4e6ad676a82b04caf1f 100644 --- a/public/hal_gnss.te +++ b/public/hal_gnss.te @@ -1,4 +1 @@ -# hwbinder access -hwbinder_use(hal_gnss) - binder_call(hal_gnss, system_server) diff --git a/public/hal_graphics_allocator.te b/public/hal_graphics_allocator.te index 1c357ed441b8f3435728d2f54b3fbfd3377929c7..45999bef2e67b16ffb926a067f5ccacac99898a9 100644 --- a/public/hal_graphics_allocator.te +++ b/public/hal_graphics_allocator.te @@ -1,6 +1,3 @@ -# hwbinder access -hwbinder_use(hal_graphics_allocator) - # GPU device access allow hal_graphics_allocator gpu_device:chr_file rw_file_perms; allow hal_graphics_allocator ion_device:chr_file r_file_perms; diff --git a/public/hal_graphics_composer.te b/public/hal_graphics_composer.te index 3753278f437b93118efd99e2916f123c28d66a4f..f875935d94b8ff3214ba19464125be650c21026f 100644 --- a/public/hal_graphics_composer.te +++ b/public/hal_graphics_composer.te @@ -1,5 +1,3 @@ -# HwBinder access -hwbinder_use(hal_graphics_composer) # IComposerCallback binder_call(hal_graphics_composer, surfaceflinger) diff --git a/public/hal_health.te b/public/hal_health.te index c6391b810123177a1238edda0f79a98525bcf45c..341efdd2006e99925ec80cb9cae4b8795852d7a9 100644 --- a/public/hal_health.te +++ b/public/hal_health.te @@ -1,6 +1,3 @@ -# hwbinder access -hwbinder_use(hal_health) - # call into healthd for callbacks binder_call(hal_health, healthd) diff --git a/public/hal_ir.te b/public/hal_ir.te index 3c7b51a9bf692b87f1cb50016d1df192904744de..adfb5ae18b17306c77d577cba5750122658dda42 100644 --- a/public/hal_ir.te +++ b/public/hal_ir.te @@ -1,5 +1,2 @@ -# hwbinder access -hwbinder_use(hal_ir) - # call into system_server process (callbacks) binder_call(hal_ir, system_server) diff --git a/public/hal_light.te b/public/hal_light.te index af238dd72c61b3f6cb904e41d95aaa4372e6e53a..4fb38b8c71bbb031d58a72c3617dd58e4bef3cf3 100644 --- a/public/hal_light.te +++ b/public/hal_light.te @@ -1,5 +1,2 @@ -# hwbinder access -hwbinder_use(hal_light) - # call into system_server process (callbacks) binder_call(hal_light, system_server) diff --git a/public/hal_memtrack.te b/public/hal_memtrack.te deleted file mode 100644 index 90ecc0a1081ad207523478244b72da7df1337114..0000000000000000000000000000000000000000 --- a/public/hal_memtrack.te +++ /dev/null @@ -1,2 +0,0 @@ -# hwbinder access -hwbinder_use(hal_memtrack); diff --git a/public/hal_nfc.te b/public/hal_nfc.te index a062a781254d0d1d815f7fb539e658f79244da62..0c4bd9c018323953c1f579d1d3bb432951ada97f 100644 --- a/public/hal_nfc.te +++ b/public/hal_nfc.te @@ -1,6 +1,3 @@ -# hwbinder access -hwbinder_use(hal_nfc) - # call into NFC process (callbacks) binder_call(hal_nfc, nfc) diff --git a/public/hal_power.te b/public/hal_power.te deleted file mode 100644 index df4cd4d3f1a6465a380959cae2ad81275c3a7dee..0000000000000000000000000000000000000000 --- a/public/hal_power.te +++ /dev/null @@ -1,2 +0,0 @@ -# hwbinder access -hwbinder_use(hal_power); diff --git a/public/hal_sensors.te b/public/hal_sensors.te deleted file mode 100644 index e3e48ab747427ed159cd41abcc5ce2eb5acb30cd..0000000000000000000000000000000000000000 --- a/public/hal_sensors.te +++ /dev/null @@ -1,2 +0,0 @@ -# hwbinder access -hwbinder_use(hal_sensors) diff --git a/public/hal_telephony.te b/public/hal_telephony.te index 6f3a38fa24b1283460ae08f65a5e9a32dc0764b5..704adc096da01bf9430ab5391c6309a766133cff 100644 --- a/public/hal_telephony.te +++ b/public/hal_telephony.te @@ -1,5 +1,3 @@ # Perform HwBinder IPC. -hwbinder_use(hal_telephony) binder_call(hal_telephony, radio) binder_call(hal_telephony, bluetooth) - diff --git a/public/hal_thermal.te b/public/hal_thermal.te index 6edf8c765ac91056496d3a4303e2a18294e8c5a5..a59a97885a6e166e32cce8f85809c3a0c103351b 100644 --- a/public/hal_thermal.te +++ b/public/hal_thermal.te @@ -1,5 +1,2 @@ -# hwbinder access -hwbinder_use(hal_thermal) - # call into system_server process (callbacks) binder_call(hal_thermal, system_server) diff --git a/public/hal_vibrator.te b/public/hal_vibrator.te index 37d015ea1bd7b4509c6ceb75eebce1597dacee95..0d9d308dfd3cc252d67b340e371fee25927c602c 100644 --- a/public/hal_vibrator.te +++ b/public/hal_vibrator.te @@ -1,5 +1,2 @@ -# hwbinder access -hwbinder_use(hal_vibrator) - # vibrator sysfs rw access allow hal_vibrator sysfs_vibrator:file rw_file_perms; diff --git a/public/hal_vr.te b/public/hal_vr.te index 4249fdd173f33047f493786c21b4f41a9dd75118..08102ad800da2acedc9e6230cdb001f990f495f4 100644 --- a/public/hal_vr.te +++ b/public/hal_vr.te @@ -1,5 +1,2 @@ -# hwbinder access -hwbinder_use(hal_vr) - # call into system_server process binder_call(hal_vr, system_server) diff --git a/public/hal_wifi.te b/public/hal_wifi.te index f13d225a749a65fb13683a5e3c2a580dc50fada8..960f1aceb4aaf7c71ad5735cafad7020d2d48b05 100644 --- a/public/hal_wifi.te +++ b/public/hal_wifi.te @@ -1,6 +1,3 @@ -## hwbinder access -hwbinder_use(hal_wifi) - ## call into system_server process (for invoking callbacks) binder_call(hal_wifi, system_server)