From 032063e1bc47188b241aef00f9c0f1639df6c220 Mon Sep 17 00:00:00 2001 From: YiKai Peng Date: Mon, 6 May 2024 09:52:45 +0000 Subject: [PATCH 1/2] selinux: label wakeup for BMS gccd Bug: 338487056 Test: v2/pixel-health-guard/device-boot-health-check-extra Change-Id: Ia3f1ef388f74c6dc387824c0851fc63377013257 Signed-off-by: YiKai Peng --- vendor/genfs_contexts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vendor/genfs_contexts b/vendor/genfs_contexts index 48df86c..8f1e7e4 100644 --- a/vendor/genfs_contexts +++ b/vendor/genfs_contexts @@ -1 +1,4 @@ -genfscon sysfs /devices/platform/10ca0000.hsi2c/i2c-10/10-0061/power_supply u:object_r:sysfs_batteryinfo:s0 \ No newline at end of file +genfscon sysfs /devices/platform/10ca0000.hsi2c/i2c-10/10-0061/power_supply u:object_r:sysfs_batteryinfo:s0 + +# wake up nodes +genfscon sysfs /devices/platform/google,ccd/power_supply/gccd/wakeup u:object_r:sysfs_wakeup:s0 From f7603040fcf610d99b409e286aee69f6c8799c50 Mon Sep 17 00:00:00 2001 From: YiKai Peng Date: Mon, 6 May 2024 15:05:49 +0000 Subject: [PATCH 2/2] selinux: allow sysfs read for hal_health_default Bug: 338487056 Test: v2/pixel-health-guard/device-boot-health-check-extra Change-Id: I5a97403fcb5773f86349cbcc1308741fdb255328 Signed-off-by: YiKai Peng --- vendor/hal_health_default.te | 1 + 1 file changed, 1 insertion(+) create mode 100644 vendor/hal_health_default.te diff --git a/vendor/hal_health_default.te b/vendor/hal_health_default.te new file mode 100644 index 0000000..189034c --- /dev/null +++ b/vendor/hal_health_default.te @@ -0,0 +1 @@ +allow hal_health_default sysfs:file r_file_perms;