From 0f30a327a34a09965e13074dc3f4611f3494c190 Mon Sep 17 00:00:00 2001 From: Cosmin Tanislav Date: Sun, 17 Oct 2021 20:44:09 +0300 Subject: [PATCH] sm8350-common: sepolicy: let mi_thermald create thermal_data_file files --- sepolicy/vendor/mi_thermald.te | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sepolicy/vendor/mi_thermald.te b/sepolicy/vendor/mi_thermald.te index 168f055..1e27fe2 100644 --- a/sepolicy/vendor/mi_thermald.te +++ b/sepolicy/vendor/mi_thermald.te @@ -16,7 +16,8 @@ allow mi_thermald sysfs_thermal:file w_file_perms; allow mi_thermald vendor_sysfs_kgsl:file w_file_perms; allow mi_thermald vendor_sysfs_battery_supply:file w_file_perms; allow mi_thermald vendor_sysfs_graphics:file w_file_perms; -allow mi_thermald thermal_data_file:file rw_file_perms; +allow mi_thermald thermal_data_file:dir w_dir_perms; +allow mi_thermald thermal_data_file:file create_file_perms; allow mi_thermald vendor_data_file:file rw_file_perms; allow mi_thermald vendor_data_file:dir w_dir_perms; allow mi_thermald sysfs_devices_system_cpu:file rw_file_perms;