From 9956cdff2fa75fb2661396454dfbcfcafbb67b9b Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Thu, 23 May 2024 19:38:57 +0000 Subject: [PATCH] fix bugreport denial for new binderfs log type Bug: 342311206 Test: SELinuxHostTest#testNoBugreportDenials Change-Id: I0c28f1353fb0663167ecbc219d5e98fd214121eb --- TEST_MAPPING | 3 +++ private/dumpstate.te | 1 + 2 files changed, 4 insertions(+) diff --git a/TEST_MAPPING b/TEST_MAPPING index 053e36a01..be8bda4b1 100644 --- a/TEST_MAPPING +++ b/TEST_MAPPING @@ -11,6 +11,9 @@ }, { "include-filter": "android.security.cts.SELinuxHostTest#testGMSCoreDomain" + }, + { + "include-filter": "android.security.cts.SELinuxHostTest#testNoBugreportDenials" } ] } diff --git a/private/dumpstate.te b/private/dumpstate.te index 95d18fd61..a64f7c74b 100644 --- a/private/dumpstate.te +++ b/private/dumpstate.te @@ -132,6 +132,7 @@ binder_call(dumpstate, gsid) userdebug_or_eng(` allow dumpstate binderfs_logs_transactions:file r_file_perms; ') +allow dumpstate binderfs_logs_transaction_history:file r_file_perms; r_dir_file(dumpstate, ota_metadata_file)