From 380fc2940ed9eb495f681ecf845a1ff7cae6bf72 Mon Sep 17 00:00:00 2001 From: Rakesh Kota Date: Wed, 22 Feb 2023 13:55:25 +0530 Subject: [PATCH 1/3] sepolicy_vndr: Add sepolicy rules for PON wakeup nodes on ravelin Add sepolicy rules for PON wakeup nodes to fix errors from suspend sepolicy scripts. Change-Id: If291843654fb78c62d64aa23b759db9f7d4f4b96 --- generic/vendor/parrot/genfs_contexts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/generic/vendor/parrot/genfs_contexts b/generic/vendor/parrot/genfs_contexts index fa69f3cc..62ec1849 100644 --- a/generic/vendor/parrot/genfs_contexts +++ b/generic/vendor/parrot/genfs_contexts @@ -198,6 +198,8 @@ genfscon sysfs /devices/platform/soc/22800000.qcom,icnss/net/ u:object_r:sysfs_n #wakeup sysfs nodes listed by SuspendSepolicyTests.sh genfscon sysfs /devices/platform/soc/c42d000.qcom,spmi/spmi-0/0-00/c42d000.qcom,spmi:qcom,pmk8350@0:rtc@6100/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/c42d000.qcom,spmi/spmi-0/0-00/c42d000.qcom,spmi:qcom,pmk8350@0:rtc@6100/rtc/rtc0/alarmtimer.0.auto/wakeup u:object_r:sysfs_wakeup:s0 +genfscon sysfs /devices/platform/soc/c42d000.qcom,spmi/spmi-0/0-02/c42d000.qcom,spmi:qcom,pmi632@2:qcom,power-on@800/wakeup u:object_r:sysfs_wakeup:s0 +genfscon sysfs /devices/platform/soc/c42d000.qcom,spmi/spmi-0/0-08/c42d000.qcom,spmi:qcom,pm7250b@2:qcom,power-on@800/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/88e0000.qcom,msm-eud/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/soc:qcom,qbt_handler/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/soc:qcom,smp2p_sleepstate/wakeup u:object_r:sysfs_wakeup:s0 From 2199a340afcc87ff36834a2f47be84251a3d2875 Mon Sep 17 00:00:00 2001 From: Vaishnavi AVS Date: Mon, 6 Mar 2023 12:03:21 +0530 Subject: [PATCH 2/3] sepolicy_vndr: Add sepolicy rules for UART wakeup nodes Add sepolicy rules for UART wakeup nodes to fix avc denials and errors from suspend sepolicy scripts. Change-Id: Ic0e4a09b29f6adf55e3b9b825dbca4b7472a1736 --- generic/vendor/parrot/genfs_contexts | 1 + 1 file changed, 1 insertion(+) diff --git a/generic/vendor/parrot/genfs_contexts b/generic/vendor/parrot/genfs_contexts index 62ec1849..d83f0fc9 100644 --- a/generic/vendor/parrot/genfs_contexts +++ b/generic/vendor/parrot/genfs_contexts @@ -196,6 +196,7 @@ genfscon sysfs /devices/platform/soc/1c08000.qcom,pcie/pci0001:00/0001:00:00.0/0 genfscon sysfs /devices/platform/soc/22800000.qcom,icnss/net/ u:object_r:sysfs_net:s0 #wakeup sysfs nodes listed by SuspendSepolicyTests.sh +genfscon sysfs /devices/platform/soc/988000.qcom,qup_uart/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/c42d000.qcom,spmi/spmi-0/0-00/c42d000.qcom,spmi:qcom,pmk8350@0:rtc@6100/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/c42d000.qcom,spmi/spmi-0/0-00/c42d000.qcom,spmi:qcom,pmk8350@0:rtc@6100/rtc/rtc0/alarmtimer.0.auto/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/c42d000.qcom,spmi/spmi-0/0-02/c42d000.qcom,spmi:qcom,pmi632@2:qcom,power-on@800/wakeup u:object_r:sysfs_wakeup:s0 From 31cb5eaa2650836aaa07428a76ef8394b8808918 Mon Sep 17 00:00:00 2001 From: Vaishnavi AVS Date: Mon, 6 Mar 2023 11:56:10 +0530 Subject: [PATCH 3/3] sepolicy_vndr: Add sepolicy rules for I2C wakeup nodes Add sepolicy rules for I2C wakeup nodes to fix avc denials and errors from suspend sepolicy scripts. Change-Id: Ia8e1972b5699dd5a56b4079840da8866c5ff6bf5 --- generic/vendor/parrot/genfs_contexts | 1 + 1 file changed, 1 insertion(+) diff --git a/generic/vendor/parrot/genfs_contexts b/generic/vendor/parrot/genfs_contexts index d83f0fc9..f93048ce 100644 --- a/generic/vendor/parrot/genfs_contexts +++ b/generic/vendor/parrot/genfs_contexts @@ -197,6 +197,7 @@ genfscon sysfs /devices/platform/soc/22800000.qcom,icnss/net/ u:object_r:sysfs_n #wakeup sysfs nodes listed by SuspendSepolicyTests.sh genfscon sysfs /devices/platform/soc/988000.qcom,qup_uart/wakeup u:object_r:sysfs_wakeup:s0 +genfscon sysfs /devices/platform/soc/980000.i2c/i2c-0/0-0028/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/c42d000.qcom,spmi/spmi-0/0-00/c42d000.qcom,spmi:qcom,pmk8350@0:rtc@6100/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/c42d000.qcom,spmi/spmi-0/0-00/c42d000.qcom,spmi:qcom,pmk8350@0:rtc@6100/rtc/rtc0/alarmtimer.0.auto/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/c42d000.qcom,spmi/spmi-0/0-02/c42d000.qcom,spmi:qcom,pmi632@2:qcom,power-on@800/wakeup u:object_r:sysfs_wakeup:s0