Bug: 305120274 Test: Compile pass. Flash the build to ZUMA devices and no sensor related avc denied log. Change-Id: I6911992b59802b62ffd206fd53e678da65ef1363 Signed-off-by: Rick Chen <rickctchen@google.com>
26 lines
997 B
Text
26 lines
997 B
Text
# Allow reading of camera persist files.
|
|
r_dir_file(hal_sensors_default, persist_camera_file)
|
|
|
|
# Allow access to the files of CDT information.
|
|
r_dir_file(hal_sensors_default, sysfs_chosen)
|
|
|
|
# Allow sensor HAL to access the thermal service HAL
|
|
hal_client_domain(hal_sensors_default, hal_thermal);
|
|
|
|
# Allow display_info_service access to the backlight driver.
|
|
allow hal_sensors_default sysfs_write_leds:file rw_file_perms;
|
|
|
|
# Allow access for dynamic sensor properties.
|
|
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;
|
|
|
|
# Allow sensor HAL to access the graphics composer.
|
|
binder_call(hal_sensors_default, hal_graphics_composer_default)
|
|
|
|
# Allow access to the power supply files for MagCC.
|
|
allow hal_sensors_default sysfs_wlc:dir r_dir_perms;
|