1# HwBinder IPC from client to server
2binder_call(hal_graphics_allocator_client, hal_graphics_allocator_server)
3
4add_hwservice(hal_graphics_allocator_server, hal_graphics_allocator_hwservice)
5allow hal_graphics_allocator_client hal_graphics_allocator_hwservice:hwservice_manager find;
6allow hal_graphics_allocator_client hal_graphics_mapper_hwservice:hwservice_manager find;
7
8# GPU device access
9allow hal_graphics_allocator gpu_device:chr_file rw_file_perms;
10allow hal_graphics_allocator ion_device:chr_file r_file_perms;
11
12# allow to run with real-time scheduling policy
13allow hal_graphics_allocator self:capability sys_nice;
14