diff --git a/public/recovery.te b/public/recovery.te index 784596dd002bab47f63dca85e24376f357ec5b58..886f4fd4824f4fa2e827f9f5aadaf33e8188cac4 100644 --- a/public/recovery.te +++ b/public/recovery.te @@ -93,8 +93,7 @@ recovery_only(` allow recovery { cache_file cache_recovery_file }:file create_file_perms; # Read /sys/class/thermal/*/temp for thermal info. - allow recovery sysfs_thermal:dir search; - allow recovery sysfs_thermal:file r_file_perms; + r_dir_file(recovery, sysfs_thermal) # Read files on /oem. r_dir_file(recovery, oemfs);