xref: /aosp_15_r20/system/sepolicy/private/hal_vibrator.te (revision e4a36f4174b17bbab9dc043f4a65dc8d87377290)
1# HwBinder IPC client/server
2binder_call(hal_vibrator_client, hal_vibrator_server)
3binder_call(hal_vibrator_server, hal_vibrator_client);
4
5hal_attribute_hwservice(hal_vibrator, hal_vibrator_hwservice)
6hal_attribute_service(hal_vibrator, hal_vibrator_service)
7
8binder_call(hal_vibrator_server, servicemanager)
9
10allow hal_vibrator_server dumpstate:fifo_file write;
11
12# vibrator sysfs rw access
13allow hal_vibrator sysfs_vibrator:file rw_file_perms;
14allow hal_vibrator sysfs_vibrator:dir search;
15
16# Allow HAL vibrator to control some parameters of a vibration, such as scaling.
17allow hal_vibrator fwk_vibrator_control_service:service_manager find;
18