From 23ffb50e5af20169fc64079bd9887e9e7256c640 Mon Sep 17 00:00:00 2001 From: Shikha Panwar Date: Wed, 13 Apr 2022 20:59:13 +0000 Subject: [PATCH] Allow microdroid to start tombstone_transmit service ... and other required changes for setup Test: atest MicrodroidHostTestCases Change-Id: I300ac5db375e5d9f0edb3168effd2f8b9d7c5fc6 --- microdroid/system/private/microdroid_manager.te | 3 ++- microdroid/system/private/property_contexts | 1 + microdroid/system/public/property.te | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/microdroid/system/private/microdroid_manager.te b/microdroid/system/private/microdroid_manager.te index bf344ac69..21731ccd3 100644 --- a/microdroid/system/private/microdroid_manager.te +++ b/microdroid/system/private/microdroid_manager.te @@ -56,10 +56,11 @@ allow microdroid_manager diced:diced { derive demote_self }; allow microdroid_manager apex_mnt_dir:dir w_dir_perms; allow microdroid_manager apex_mnt_dir:file create_file_perms; -# Allow microdroid_manager to start the services apexd-vm, apkdmverity and zipfuse +# Allow microdroid_manager to start the services apexd-vm, apkdmverity,tombstone_transmit & zipfuse set_prop(microdroid_manager, ctl_apexd_vm_prop) set_prop(microdroid_manager, ctl_apkdmverity_prop) set_prop(microdroid_manager, ctl_seriallogging_prop) +set_prop(microdroid_manager, ctl_tombstone_transmit_prop) set_prop(microdroid_manager, ctl_zipfuse_prop) # Allow microdroid_manager to wait for linkerconfig to be ready diff --git a/microdroid/system/private/property_contexts b/microdroid/system/private/property_contexts index e4f0bb09e..68d6df528 100644 --- a/microdroid/system/private/property_contexts +++ b/microdroid/system/private/property_contexts @@ -26,6 +26,7 @@ ctl.stop$apexd u:object_r:ctl_apexd_prop:s0 ctl.start$apexd-vm u:object_r:ctl_apexd_vm_prop:s0 ctl.start$apkdmverity u:object_r:ctl_apkdmverity_prop:s0 ctl.start$seriallogging u:object_r:ctl_seriallogging_prop:s0 +ctl.start$tombstone_transmit u:object_r:ctl_tombstone_transmit_prop:s0 ctl.start$zipfuse u:object_r:ctl_zipfuse_prop:s0 ctl.console u:object_r:ctl_console_prop:s0 diff --git a/microdroid/system/public/property.te b/microdroid/system/public/property.te index d00a61896..f85ba7614 100644 --- a/microdroid/system/public/property.te +++ b/microdroid/system/public/property.te @@ -22,6 +22,7 @@ type ctl_seriallogging_prop, property_type; type ctl_sigstop_prop, property_type; type ctl_start_prop, property_type; type ctl_stop_prop, property_type; +type ctl_tombstone_transmit_prop, property_type; type ctl_zipfuse_prop, property_type; type debug_prop, property_type; type default_prop, property_type;