Skip to content
Snippets Groups Projects
  • Tri Vo's avatar
    same_process_hal_file: access to individual coredomains · 90cf5a7f
    Tri Vo authored
    Remove blanket coredomain access to same_process_hal_file in favor of
    granular access. This change takes into account audits from go/sedenials
    (our internal dogfood program)
    
    Bug: 37211678
    Test: m selinux_policy
    Change-Id: I5634fb65c72d13007e40c131a600585a05b8c4b5
    90cf5a7f
hal_graphics_allocator.te 651 B
# 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 to run with real-time scheduling policy
allow hal_graphics_allocator self:global_capability_class_set sys_nice;