From a03659044bed6a9b275bb5c95ff955617d96cc0c Mon Sep 17 00:00:00 2001 From: Keith Mok Date: Sat, 7 Aug 2021 00:00:39 +0000 Subject: [PATCH] Allow crash_dump to read uptime crash_dump need to read process uptime which need to be calc by minus the system uptime Bug: 193159611 Bug: 183575981 Test: manual Change-Id: I9f071007f31b8101d2d67db19b5d2b2835e6c5a4 --- public/crash_dump.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/crash_dump.te b/public/crash_dump.te index a6f0a9470..9f3be6296 100644 --- a/public/crash_dump.te +++ b/public/crash_dump.te @@ -34,6 +34,9 @@ allow crash_dump dalvikcache_data_file:file r_file_perms; # Read APEX data directories. allow crash_dump apex_module_data_file:dir { getattr search }; +# Read uptime +allow crash_dump proc_uptime:file r_file_perms; + # Read APK files. r_dir_file(crash_dump, apk_data_file);