hal_sensors_default: Allow sensors HAL to access AoC sysfs and properties. am: eaeec28c23 am: 8686077cf1

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17799083

Change-Id: I46720865410689fa8a562eedecf9aa082393a881
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
chiayupei 2022-04-19 02:38:56 +00:00 committed by Automerger Merge Worker
commit 44c3d78413

View file

@ -36,9 +36,18 @@ allow hal_sensors_default sensor_reg_data_file:file r_file_perms;
# Allow access to the display info for ALS.
allow hal_sensors_default sysfs_display:file rw_file_perms;
# Allow access to the sysfs_aoc.
allow hal_sensors_default sysfs_aoc:dir search;
allow hal_sensors_default sysfs_aoc:file r_file_perms;
# Allow access for AoC properties.
get_prop(hal_sensors_default, vendor_aoc_prop)
# Allow sensor HAL to read AoC dumpstate.
allow hal_sensors_default sysfs_aoc_dumpstate:file r_file_perms;
# Allow access to the AoC clock and kernel boot time sys FS node. This is needed
# to synchronize the AP and AoC clock timestamps.
allow hal_sensors_default sysfs_aoc:dir search;
allow hal_sensors_default sysfs_aoc_boottime:file r_file_perms;
# Allow access to the files of CDT information.