selinux: Allow sensor HAL to access the display service HAL

Add necessary permissions.

Bug: b/204471211
Test: Testing with corresponding sensor HAL changes and sensor_test commands.
Change-Id: I01774210693ceb4a6d0d4dee4fb5e905117774d3
This commit is contained in:
Chris Kuiper 2021-12-01 21:29:36 -08:00 committed by Chia-Ching Yu
parent f7db23e139
commit 734d79bdaf

View file

@ -55,6 +55,10 @@ get_prop(hal_sensors_default, vendor_dynamic_sensor_prop)
# Allow access to raw HID devices for dynamic sensors.
allow hal_sensors_default hidraw_device:chr_file rw_file_perms;
# Allow sensor HAL to access the display service HAL
allow hal_sensors_default hal_pixel_display_service:service_manager find;
binder_call(hal_sensors_default, hal_graphics_composer_default)
#
# Suez type enforcements.
#