xref: /aosp_15_r20/system/sepolicy/private/hal_sensors.te (revision e4a36f4174b17bbab9dc043f4a65dc8d87377290)
1# HwBinder IPC from client to server
2binder_call(hal_sensors_client, hal_sensors_server)
3
4hal_attribute_hwservice(hal_sensors, hal_sensors_hwservice)
5
6# Allow sensor hals to access ashmem memory allocated by apps
7allow hal_sensors { appdomain -isolated_app }:fd use;
8
9# Allow sensor hals to access ashmem memory allocated by android.hidl.allocator
10# fd is passed in from framework sensorservice HAL.
11allow hal_sensors hal_allocator:fd use;
12
13# allow to run with real-time scheduling policy
14allow hal_sensors self:global_capability_class_set sys_nice;
15
16add_service(hal_sensors_server, hal_sensors_service)
17binder_call(hal_sensors_server, servicemanager)
18
19allow hal_sensors_client hal_sensors_service:service_manager find;
20