Inseob Kim | 75806ef | 2024-03-27 17:18:41 +0900 | [diff] [blame] | 1 | # HwBinder IPC from client to server, and callbacks |
| 2 | binder_call(hal_graphics_composer_client, hal_graphics_composer_server) |
| 3 | binder_call(hal_graphics_composer_server, hal_graphics_composer_client) |
| 4 | allow hal_graphics_composer_client hal_graphics_composer_server_tmpfs:file { getattr map read write }; |
| 5 | allow hal_graphics_composer_server hal_graphics_composer_client_tmpfs:file { getattr map read write }; |
| 6 | |
| 7 | hal_attribute_hwservice(hal_graphics_composer, hal_graphics_composer_hwservice) |
| 8 | |
| 9 | # Coordinate with hal_graphics_mapper |
| 10 | allow hal_graphics_composer_server hal_graphics_mapper_hwservice:hwservice_manager find; |
| 11 | |
| 12 | # GPU device access |
| 13 | allow hal_graphics_composer gpu_device:chr_file rw_file_perms; |
| 14 | allow hal_graphics_composer gpu_device:dir r_dir_perms; |
| 15 | allow hal_graphics_composer ion_device:chr_file r_file_perms; |
| 16 | allow hal_graphics_composer dmabuf_system_heap_device:chr_file r_file_perms; |
| 17 | allow hal_graphics_composer hal_graphics_allocator:fd use; |
| 18 | |
| 19 | # Access /dev/graphics/fb0. |
| 20 | allow hal_graphics_composer graphics_device:dir search; |
| 21 | allow hal_graphics_composer graphics_device:chr_file rw_file_perms; |
| 22 | |
| 23 | # Fences |
| 24 | allow hal_graphics_composer system_server:fd use; |
| 25 | allow hal_graphics_composer bootanim:fd use; |
| 26 | allow hal_graphics_composer appdomain:fd use; |
| 27 | |
| 28 | # allow self to set SCHED_FIFO |
| 29 | allow hal_graphics_composer self:global_capability_class_set sys_nice; |
| 30 | |
| 31 | # allow surfaceflinger to use a pipe for dumpsys output |
| 32 | allow hal_graphics_composer_server hal_graphics_composer_client:fifo_file write; |
| 33 | |
| 34 | |
| 35 | binder_call(hal_graphics_composer_client, servicemanager) |
| 36 | binder_call(hal_graphics_composer_server, servicemanager) |
| 37 | |
| 38 | hal_attribute_service(hal_graphics_composer, hal_graphics_composer_service) |