diff options
Diffstat (limited to 'prebuilts/api/32.0/public/hal_graphics_allocator.te')
-rw-r--r-- | prebuilts/api/32.0/public/hal_graphics_allocator.te | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/prebuilts/api/32.0/public/hal_graphics_allocator.te b/prebuilts/api/32.0/public/hal_graphics_allocator.te new file mode 100644 index 000000000..3ec6b9618 --- /dev/null +++ b/prebuilts/api/32.0/public/hal_graphics_allocator.te @@ -0,0 +1,14 @@ +# HwBinder IPC from client to server +binder_call(hal_graphics_allocator_client, hal_graphics_allocator_server) + +hal_attribute_hwservice(hal_graphics_allocator, hal_graphics_allocator_hwservice) +allow hal_graphics_allocator_client hal_graphics_mapper_hwservice:hwservice_manager find; +allow hal_graphics_allocator_client same_process_hal_file:file { execute read open getattr map }; + +# 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; +allow hal_graphics_allocator dmabuf_system_heap_device:chr_file r_file_perms; + +# allow to run with real-time scheduling policy +allow hal_graphics_allocator self:global_capability_class_set sys_nice; |