From 49a4a06264502fed3b8a61b67974d7e9f5abb342 Mon Sep 17 00:00:00 2001 From: Devin Moore Date: Sat, 4 May 2024 00:50:52 +0000 Subject: [PATCH] Allow crash_dump to read misctrl properties This is used to determine if the device has been in 16k page size mode to help debug issues with that. Test: debuggerd_test with ro.misctl.16kb_before="1" Bug: 335247092 Change-Id: I7b5fcd39cc5b3247d866814fbcf53299d68846c2 --- private/crash_dump.te | 2 ++ private/property.te | 1 + 2 files changed, 3 insertions(+) diff --git a/private/crash_dump.te b/private/crash_dump.te index 9bc7cf6ba..45d57222d 100644 --- a/private/crash_dump.te +++ b/private/crash_dump.te @@ -109,6 +109,8 @@ dontaudit crash_dump { dontaudit crash_dump system_data_file:{ lnk_file file } read; dontaudit crash_dump property_type:file read; +get_prop(crash_dump, misctrl_prop) + ### ### neverallow assertions ### diff --git a/private/property.te b/private/property.te index 994594d5f..4ce2d54ad 100644 --- a/private/property.te +++ b/private/property.te @@ -231,6 +231,7 @@ neverallow { -init -dumpstate -misctrl + -crash_dump userdebug_or_eng(`-su') } misctrl_prop:file no_rw_file_perms; neverallow {