From 61d11a676cac5a79d662cd68db3a1e5145d53ff0 Mon Sep 17 00:00:00 2001 From: Cosmin Tanislav Date: Wed, 13 Oct 2021 22:58:55 +0300 Subject: [PATCH] sm8350-common: sepolicy: add powershare rules --- sepolicy/vendor/genfs_contexts | 2 ++ sepolicy/vendor/hal_lineage_powershare_default.te | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 sepolicy/vendor/genfs_contexts create mode 100644 sepolicy/vendor/hal_lineage_powershare_default.te diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts new file mode 100644 index 0000000..97c60a2 --- /dev/null +++ b/sepolicy/vendor/genfs_contexts @@ -0,0 +1,2 @@ +# Battery +genfscon sysfs /class/qcom-battery u:object_r:vendor_sysfs_battery_supply:s0 diff --git a/sepolicy/vendor/hal_lineage_powershare_default.te b/sepolicy/vendor/hal_lineage_powershare_default.te new file mode 100644 index 0000000..e591663 --- /dev/null +++ b/sepolicy/vendor/hal_lineage_powershare_default.te @@ -0,0 +1,2 @@ +allow hal_lineage_powershare_default vendor_sysfs_battery_supply:dir search; +allow hal_lineage_powershare_default vendor_sysfs_battery_supply:file rw_file_perms;