1type hal_graphics_composer_server_tmpfs, file_type; 2attribute hal_graphics_composer_client_tmpfs; 3expandattribute hal_graphics_composer_client_tmpfs true; 4 5# HwBinder IPC from client to server, and callbacks 6binder_call(hal_graphics_composer_client, hal_graphics_composer_server) 7binder_call(hal_graphics_composer_server, hal_graphics_composer_client) 8allow hal_graphics_composer_client hal_graphics_composer_server_tmpfs:file { getattr map read write }; 9allow hal_graphics_composer_server hal_graphics_composer_client_tmpfs:file { getattr map read write }; 10 11hal_attribute_hwservice(hal_graphics_composer, hal_graphics_composer_hwservice) 12 13# Coordinate with hal_graphics_mapper 14allow hal_graphics_composer_server hal_graphics_mapper_hwservice:hwservice_manager find; 15 16# GPU device access 17allow hal_graphics_composer gpu_device:chr_file rw_file_perms; 18allow hal_graphics_composer ion_device:chr_file r_file_perms; 19allow hal_graphics_composer dmabuf_system_heap_device:chr_file r_file_perms; 20allow hal_graphics_composer hal_graphics_allocator:fd use; 21 22# Access /dev/graphics/fb0. 23allow hal_graphics_composer graphics_device:dir search; 24allow hal_graphics_composer graphics_device:chr_file rw_file_perms; 25 26# Fences 27allow hal_graphics_composer system_server:fd use; 28allow hal_graphics_composer bootanim:fd use; 29allow hal_graphics_composer appdomain:fd use; 30 31# allow self to set SCHED_FIFO 32allow hal_graphics_composer self:global_capability_class_set sys_nice; 33