Add sepolicy for sensor HAL accessing AOC reset sysfs node. am: 55bd05960f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14167428 Change-Id: I63c1b97911f6e853dcc41f3ab1ebde385235d3a5
This commit is contained in:
commit
0fd9e3970a
3 changed files with 5 additions and 0 deletions
|
@ -41,6 +41,9 @@ allow hal_sensors_default sysfs_aoc:dir search;
|
||||||
# Allow use of the USF low latency transport.
|
# Allow use of the USF low latency transport.
|
||||||
usf_low_latency_transport(hal_sensors_default)
|
usf_low_latency_transport(hal_sensors_default)
|
||||||
|
|
||||||
|
# Allow sensor HAL to reset AOC.
|
||||||
|
allow hal_sensors_default sysfs_aoc_reset:file w_file_perms;
|
||||||
|
|
||||||
#
|
#
|
||||||
# Suez type enforcements.
|
# Suez type enforcements.
|
||||||
#
|
#
|
||||||
|
|
1
whitechapel/vendor/google/file.te
vendored
1
whitechapel/vendor/google/file.te
vendored
|
@ -94,6 +94,7 @@ type sysfs_touch, sysfs_type, fs_type;
|
||||||
type sysfs_aoc_boottime, sysfs_type, fs_type;
|
type sysfs_aoc_boottime, sysfs_type, fs_type;
|
||||||
type sysfs_aoc_firmware, sysfs_type, fs_type;
|
type sysfs_aoc_firmware, sysfs_type, fs_type;
|
||||||
type sysfs_aoc, sysfs_type, fs_type;
|
type sysfs_aoc, sysfs_type, fs_type;
|
||||||
|
type sysfs_aoc_reset, sysfs_type, fs_type;
|
||||||
|
|
||||||
# Audio
|
# Audio
|
||||||
type persist_audio_file, file_type, vendor_persist_type;
|
type persist_audio_file, file_type, vendor_persist_type;
|
||||||
|
|
1
whitechapel/vendor/google/genfs_contexts
vendored
1
whitechapel/vendor/google/genfs_contexts
vendored
|
@ -2,6 +2,7 @@
|
||||||
genfscon sysfs /devices/platform/19000000.aoc/aoc_clock_and_kernel_boottime u:object_r:sysfs_aoc_boottime:s0
|
genfscon sysfs /devices/platform/19000000.aoc/aoc_clock_and_kernel_boottime u:object_r:sysfs_aoc_boottime:s0
|
||||||
genfscon sysfs /devices/platform/19000000.aoc/firmware u:object_r:sysfs_aoc_firmware:s0
|
genfscon sysfs /devices/platform/19000000.aoc/firmware u:object_r:sysfs_aoc_firmware:s0
|
||||||
genfscon sysfs /devices/platform/19000000.aoc u:object_r:sysfs_aoc:s0
|
genfscon sysfs /devices/platform/19000000.aoc u:object_r:sysfs_aoc:s0
|
||||||
|
genfscon sysfs /devices/platform/19000000.aoc/reset u:object_r:sysfs_aoc_reset:s0
|
||||||
|
|
||||||
# WiFi
|
# WiFi
|
||||||
genfscon sysfs /wifi u:object_r:sysfs_wifi:s0
|
genfscon sysfs /wifi u:object_r:sysfs_wifi:s0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue