diff --git a/private/heapprofd.te b/private/heapprofd.te index 30ad7f12d357f4aa1e8513d4afc5a1e25cbd36e0..b7013d7c0514893e887305128383edca309c38ee 100644 --- a/private/heapprofd.te +++ b/private/heapprofd.te @@ -13,10 +13,10 @@ userdebug_or_eng(` # Executables and libraries. # These are needed to read the ELF binary data needed for unwinding. - allow heapprofd system_file:file r_file_perms; - allow heapprofd apk_data_file:file r_file_perms; - allow heapprofd dalvikcache_data_file:file r_file_perms; - allow heapprofd vendor_file_type:file r_file_perms; + r_dir_file(heapprofd, system_file_type) + r_dir_file(heapprofd, apk_data_file) + r_dir_file(heapprofd, dalvikcache_data_file) + r_dir_file(heapprofd, vendor_file_type) ') # Write trace data to the Perfetto traced damon. This requires connecting to its