2017-03-20 23:02:20 +01:00
|
|
|
# HwBinder IPC from client to server
|
|
|
|
binder_call(hal_graphics_allocator_client, hal_graphics_allocator_server)
|
|
|
|
|
2018-06-06 18:30:18 +02:00
|
|
|
hal_attribute_hwservice(hal_graphics_allocator, hal_graphics_allocator_hwservice)
|
2017-04-14 04:05:27 +02:00
|
|
|
allow hal_graphics_allocator_client hal_graphics_mapper_hwservice:hwservice_manager find;
|
2024-01-31 01:32:48 +01:00
|
|
|
allow hal_graphics_allocator_client hal_graphics_mapper_service:service_manager find;
|
2018-10-18 21:39:35 +02:00
|
|
|
allow hal_graphics_allocator_client same_process_hal_file:file { execute read open getattr map };
|
2017-04-14 04:05:27 +02:00
|
|
|
|
2016-10-12 15:38:00 +02:00
|
|
|
# GPU device access
|
|
|
|
allow hal_graphics_allocator gpu_device:chr_file rw_file_perms;
|
2022-02-24 19:32:16 +01:00
|
|
|
allow hal_graphics_allocator gpu_device:dir r_dir_perms;
|
2016-10-12 15:38:00 +02:00
|
|
|
allow hal_graphics_allocator ion_device:chr_file r_file_perms;
|
2021-02-16 06:57:42 +01:00
|
|
|
allow hal_graphics_allocator dmabuf_system_heap_device:chr_file r_file_perms;
|
2017-05-09 18:53:46 +02:00
|
|
|
|
2023-01-18 17:00:52 +01:00
|
|
|
# Access the secure heap
|
|
|
|
allow hal_graphics_allocator dmabuf_system_secure_heap_device:chr_file r_file_perms;
|
|
|
|
|
2017-05-09 18:53:46 +02:00
|
|
|
# allow to run with real-time scheduling policy
|
2017-11-09 23:51:26 +01:00
|
|
|
allow hal_graphics_allocator self:global_capability_class_set sys_nice;
|
2022-01-18 22:58:19 +01:00
|
|
|
|
|
|
|
# IAllocator stable-aidl
|
|
|
|
hal_attribute_service(hal_graphics_allocator, hal_graphics_allocator_service)
|
|
|
|
binder_call(hal_graphics_allocator_server, servicemanager)
|
|
|
|
binder_call(hal_graphics_allocator_client, servicemanager)
|