diff --git a/public/recovery.te b/public/recovery.te index 6bbc2ab86bd7c2994839ca42c2019f3062a023bc..1f1a5ac6a3aa7ba9df766bb9fc8062b7f7b4ff57 100644 --- a/public/recovery.te +++ b/public/recovery.te @@ -91,8 +91,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);