hal_sensors_default: Allow sensors HAL to access AoC sysfs and properties.
Bug: 202901227 Test: Verify pass by checking device log. Signed-off-by: chiayupei <chiayupei@google.com> Change-Id: I67e0fcc4ad89ff3c1945f6fdd83d01f14fcdcbec
This commit is contained in:
parent
09ef2e08c5
commit
eaeec28c23
1 changed files with 10 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue