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;