summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWasb Liu <wasbliu@google.com>2022-04-29 16:35:39 +0800
committerWasb Liu <wasbliu@google.com>2022-04-29 16:40:45 +0800
commit1b1d98425f09c4f12b473e2db5713d73297792b1 (patch)
tree9394f95e20d820e26672c1ec823ac916ad468823
parentd4c74fffeb0b1141f45b35f5d8479d5c432ff483 (diff)
downloadfelix-sepolicy-1b1d98425f09c4f12b473e2db5713d73297792b1.tar.gz
Add sepolicy for P9222 WLC power_supply
avc: denied { getattr } for comm="android.hardwar" path="/sys/devices/platform/10da0000.hsi2c/i2c-7/i2c-p9222/power_supply/wireless/capacity" dev="sysfs" ino=72303 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 Bug: 229820966 Test: build ok, wireless power_supply can be detected by healthd Signed-off-by: Wasb Liu <wasbliu@google.com> Change-Id: I3078a11d6398be626d2c419ebee7d9e33babe441
-rw-r--r--vendor/genfs_contexts3
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/genfs_contexts b/vendor/genfs_contexts
new file mode 100644
index 0000000..45238c9
--- /dev/null
+++ b/vendor/genfs_contexts
@@ -0,0 +1,3 @@
+# BMS
+genfscon sysfs /devices/platform/10da0000.hsi2c/i2c-7/i2c-p9222 u:object_r:sysfs_wlc:s0
+genfscon sysfs /devices/platform/10da0000.hsi2c/i2c-7/i2c-p9222/power_supply u:object_r:sysfs_batteryinfo:s0