Skip to content
Snippets Groups Projects
  • Steven Moreland's avatar
    hal_attribute_hwservice_client += add_hwservice · 343e24a1
    Steven Moreland authored
    For sanity, this makes 'hal_attribute_hwservice_client'
    be associated with a specific hwservice thus making things
    consistent.
    
    After this change, only configstore, hal_allocator, and the
    fwk_* services are inconsistent with all other HALs.
    
    Bug: 80319537
    Test: boot device, sanity tests, check for denials
    Change-Id: Ibffc65c9567a429e07a3dc4dd41117738459dc2a
    343e24a1
hal_sensors.te 557 B
# HwBinder IPC from client to server
binder_call(hal_sensors_client, hal_sensors_server)

hal_attribute_hwservice_client(hal_sensors, hal_sensors_hwservice)

# Allow sensor hals to access ashmem memory allocated by apps
allow hal_sensors { appdomain -isolated_app }:fd use;

# Allow sensor hals to access ashmem memory allocated by android.hidl.allocator
# fd is passed in from framework sensorservice HAL.
allow hal_sensors hal_allocator:fd use;

# allow to run with real-time scheduling policy
allow hal_sensors self:global_capability_class_set sys_nice;