Merge "gs101-sepolicy: Allow rlsservice to access range sensor" into sc-dev

This commit is contained in:
Cheng Gu 2021-04-05 20:45:08 +00:00 committed by Android (Google) Code Review
commit ce42ee4660
3 changed files with 7 additions and 0 deletions

View file

@ -36,6 +36,9 @@ type touch_offload_device, dev_type;
# LWIS (Lightweight Imaging Subsystem) devices, used by Lyric camera HAL
type lwis_device, dev_type;
# RLS device
type rls_device, dev_type;
# sensor direct DMA-BUF heap
type sensor_direct_heap_device, dmabuf_heap_device_type, dev_type;

View file

@ -175,6 +175,7 @@
/vendor/lib(64)?/lib_aion_buffer\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libGralloc4Wrapper\.so u:object_r:same_process_hal_file:s0
/dev/stmvl53l1_ranging u:object_r:rls_device:s0
/dev/lwis-act0 u:object_r:lwis_device:s0
/dev/lwis-act1 u:object_r:lwis_device:s0

View file

@ -13,6 +13,9 @@ allow rlsservice persist_camera_file:dir search;
allow rlsservice persist_camera_file:file r_file_perms;
allow rlsservice mnt_vendor_file:dir search;
# access device files
allow rlsservice rls_device:chr_file rw_file_perms;
binder_call(rlsservice, hal_sensors_default)
binder_call(rlsservice, hal_camera_default)