From 8c76e46a0de21d11f79b147d95f0ec279356ac9c Mon Sep 17 00:00:00 2001 From: Cosmin Tanislav Date: Mon, 18 Oct 2021 10:12:08 +0300 Subject: [PATCH] sm8350-common: sepolicy: let battery secret read kmsg device --- sepolicy/vendor/battery.te | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sepolicy/vendor/battery.te b/sepolicy/vendor/battery.te index 4c91aaa..9b4e5d3 100644 --- a/sepolicy/vendor/battery.te +++ b/sepolicy/vendor/battery.te @@ -19,10 +19,11 @@ r_dir_file(battery_daemons, sysfs_type) r_dir_file(battery_daemons, vendor_sysfs_usb_supply) r_dir_file(battery_daemons, vendor_sysfs_usbpd_device) + allow battery_daemons persist_subsys_file:dir w_dir_perms; allow battery_daemons rootfs:dir w_dir_perms; -allow battery_daemons kmsg_device:chr_file w_file_perms; +allow battery_daemons kmsg_device:chr_file rw_file_perms; allow battery_daemons persist_subsys_file:file w_file_perms; allow battery_daemons sysfs:file w_file_perms; allow battery_daemons vendor_sysfs_battery_supply:file w_file_perms;