From: Linux4 Date: Mon, 20 Apr 2020 16:02:08 +0000 (+0200) Subject: common: add policy for powershare HAL X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=76ba65b50998c505fcf8909207ea6194d13a82e1;p=GitHub%2FLineageOS%2Fandroid_device_samsung_slsi_sepolicy.git common: add policy for powershare HAL Change-Id: I2e17e677613b4563215db1f40645eb7d84ce98dc --- diff --git a/common/vendor/file_contexts b/common/vendor/file_contexts index 4c77ff2..54b7f79 100644 --- a/common/vendor/file_contexts +++ b/common/vendor/file_contexts @@ -116,6 +116,7 @@ /(vendor|system/vendor)/bin/hw/android\.hardware\.power@[0-9].[0-9]-service\.exynos u:object_r:hal_power_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator@[0-9].[0-9]-service\.samsung-haptic u:object_r:hal_vibrator_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.lineage\.biometrics\.fingerprint\.inscreen@1.0-service.samsung u:object_r:hal_lineage_fod_default_exec:s0 +/(vendor|system/vendor)/bin/hw/vendor\.lineage\.powershare@[0-9].[0-9]-service\.samsung u:object_r:hal_lineage_powershare_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.samsung_slsi\.hardware\.configstore@[0-9]\.[0-9]-service u:object_r:hal_vendor_configstore_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.samsung_slsi\.hardware\.ExynosHWCServiceTW@[0-9]\.[0-9]-service u:object_r:hal_vendor_hwcservice_default_exec:s0 diff --git a/common/vendor/hal_lineage_powershare_default.te b/common/vendor/hal_lineage_powershare_default.te new file mode 100644 index 0000000..48b9dd8 --- /dev/null +++ b/common/vendor/hal_lineage_powershare_default.te @@ -0,0 +1,5 @@ +# hal_lineage_powershare_default.te + +allow hal_lineage_powershare_default sysfs_battery:dir search; +allow hal_lineage_powershare_default sysfs_battery_writable:dir search; +allow hal_lineage_powershare_default sysfs_battery_writable:file rw_file_perms;