From 566095b9aec74a6bb583b815ecc0840297eb584d Mon Sep 17 00:00:00 2001 From: Darren Hsu Date: Wed, 28 Jun 2023 14:18:07 +0800 Subject: [PATCH] sepolicy: allow system_suspend to read gnss sysfs avc: denied { read } for name="wakeup61" dev="sysfs" ino=65863 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0 bug=b/288984031 Bug: 288984031 Test: capture a bug report and check there is no avc denial related to gnss Change-Id: Iab3e835ae1d3b874eb8acbe18278b5ba1d7cb126 Signed-off-by: Darren Hsu --- tracking_denials/bug_map | 1 - vendor/genfs_contexts | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tracking_denials/bug_map b/tracking_denials/bug_map index 769f9ca..49a7e51 100644 --- a/tracking_denials/bug_map +++ b/tracking_denials/bug_map @@ -7,5 +7,4 @@ gnssd sysfs_soc file b/288983920 gnssd vendor_default_prop property_service b/288983920 hal_gnss_default fwk_sensor_service service_manager b/288984267 hal_gnss_default gnssd unix_stream_socket b/288984267 -system_suspend sysfs dir b/288984031 vendor_init default_prop property_service b/288049372 diff --git a/vendor/genfs_contexts b/vendor/genfs_contexts index a308a4e..590be27 100644 --- a/vendor/genfs_contexts +++ b/vendor/genfs_contexts @@ -25,7 +25,7 @@ genfscon sysfs /devices/platform/10c90000.hsi2c/i2c-7/7-0061/power_supply genfscon sysfs /devices/platform/10c90000.hsi2c/i2c-8/8-0061/power_supply u:object_r:sysfs_batteryinfo:s0 genfscon sysfs /devices/platform/10c90000.hsi2c/i2c-9/9-0061/power_supply u:object_r:sysfs_batteryinfo:s0 - +# System Suspend genfscon sysfs /devices/platform/10c90000.hsi2c/i2c-0/0-0061/power_supply/wireless/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/10c90000.hsi2c/i2c-1/1-0061/power_supply/wireless/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/10c90000.hsi2c/i2c-2/2-0061/power_supply/wireless/wakeup u:object_r:sysfs_wakeup:s0 @@ -47,3 +47,5 @@ genfscon sysfs /devices/platform/10c90000.hsi2c/i2c-6/6-0061/wakeup/wakeup genfscon sysfs /devices/platform/10c90000.hsi2c/i2c-7/7-0061/wakeup/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/10c90000.hsi2c/i2c-8/8-0061/wakeup/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/10c90000.hsi2c/i2c-9/9-0061/wakeup/wakeup u:object_r:sysfs_wakeup:s0 + +genfscon sysfs /devices/platform/gnssif/wakeup u:object_r:sysfs_wakeup:s0