Skip to content
Snippets Groups Projects
Commit b5f7f28c authored by Yifan Hong's avatar Yifan Hong
Browse files

full_treble: coredomain must not have access to sysfs_batteryinfo

... but should do it via health HAL and healthd.

Bug: 110891415
Test: builds
Change-Id: Ib124f82d31f1dfbe99a56475dba04a37f81bdca3
parent 43a0a8e1
No related branches found
No related tags found
No related merge requests found
......@@ -1406,3 +1406,24 @@ neverallow {
domain
-coredomain
} mnt_product_file:dir *;
# Platform must not have access to sysfs_batteryinfo, but should do it via health HAL and healthd
full_treble_only(`
neverallow {
coredomain
-healthd
-shell
# Generate uevents for health info
-ueventd
# Recovery uses health HAL passthrough implementation.
-recovery
# Charger uses health HAL passthrough implementation.
-charger
# TODO(b/110891300): remove this exception
-incidentd
# TODO(b/110890430): remove this exception
-perfprofd
# TODO(b/110891415, b/65643247): remove these exceptions
-vold
} sysfs_batteryinfo:file { open read };
')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment