1#
2# USF sensor HAL SELinux type enforcements.
3#
4
5# Allow reading of camera persist files.
6r_dir_file(hal_sensors_default, persist_camera_file)
7
8# Allow access to the files of CDT information.
9r_dir_file(hal_sensors_default, sysfs_chosen)
10
11# Allow display_info_service access to the backlight driver.
12allow hal_sensors_default sysfs_write_leds:file rw_file_perms;
13
14# Allow access for dynamic sensor properties.
15get_prop(hal_sensors_default, vendor_dynamic_sensor_prop)
16
17# Allow access to raw HID devices for dynamic sensors.
18allow hal_sensors_default hidraw_device:chr_file rw_file_perms;
19
20# Allow sensor HAL to access the display service HAL
21allow hal_sensors_default hal_pixel_display_service:service_manager find;
22
23# Allow sensor HAL to access the graphics composer.
24binder_call(hal_sensors_default, hal_graphics_composer_default)
25
26# Allow access to the power supply files for MagCC.
27allow hal_sensors_default sysfs_wlc:dir r_dir_perms;
28