From 1aaa9d5be912b34d5ad0248fb08e981216a5e06f Mon Sep 17 00:00:00 2001 From: Adam Shih Date: Fri, 8 Oct 2021 11:39:38 +0800 Subject: [PATCH] review hardware_info_app Bug: 196916111 Test: boot with app correctly labeled Change-Id: I31335fff6356edeedc10ebd2e55b8ed62e39ee02 --- legacy/hardware_info_app.te | 13 ------------- legacy/seapp_contexts | 2 -- whitechapel_pro/hardware_info_app.te | 4 ++++ whitechapel_pro/seapp_contexts | 3 +++ 4 files changed, 7 insertions(+), 15 deletions(-) delete mode 100644 legacy/hardware_info_app.te delete mode 100644 legacy/seapp_contexts create mode 100644 whitechapel_pro/hardware_info_app.te diff --git a/legacy/hardware_info_app.te b/legacy/hardware_info_app.te deleted file mode 100644 index 382b531c..00000000 --- a/legacy/hardware_info_app.te +++ /dev/null @@ -1,13 +0,0 @@ -type hardware_info_app, domain; - -app_domain(hardware_info_app) - -allow hardware_info_app app_api_service:service_manager find; - -# Display -allow hardware_info_app sysfs_display:dir search; -allow hardware_info_app sysfs_display:file r_file_perms; - -# Storage -allow hardware_info_app sysfs_scsi_devices_0000:dir search; -allow hardware_info_app sysfs_scsi_devices_0000:file r_file_perms; \ No newline at end of file diff --git a/legacy/seapp_contexts b/legacy/seapp_contexts deleted file mode 100644 index 390f1601..00000000 --- a/legacy/seapp_contexts +++ /dev/null @@ -1,2 +0,0 @@ -# Hardware Info Collection -user=_app isPrivApp=true name=com.google.android.hardwareinfo domain=hardware_info_app type=app_data_file levelFrom=user diff --git a/whitechapel_pro/hardware_info_app.te b/whitechapel_pro/hardware_info_app.te new file mode 100644 index 00000000..9b52417e --- /dev/null +++ b/whitechapel_pro/hardware_info_app.te @@ -0,0 +1,4 @@ +type hardware_info_app, domain; +app_domain(hardware_info_app) + +allow hardware_info_app app_api_service:service_manager find; diff --git a/whitechapel_pro/seapp_contexts b/whitechapel_pro/seapp_contexts index 8ef7f82f..00cf0c5b 100644 --- a/whitechapel_pro/seapp_contexts +++ b/whitechapel_pro/seapp_contexts @@ -5,6 +5,9 @@ user=_app isPrivApp=true name=com.shannon.qualifiednetworksservice domain=vendor user=_app isPrivApp=true name=com.shannon.rcsservice domain=vendor_rcs_app levelFrom=all user=_app isPrivApp=true name=com.shannon.rcsservice:shannonrcsservice domain=vendor_rcs_service_app levelFrom=all +# Hardware Info Collection +user=_app isPrivApp=true name=com.google.android.hardwareinfo domain=hardware_info_app type=app_data_file levelFrom=user + # coredump/ramdump user=_app seinfo=platform name=com.android.ramdump domain=ramdump_app type=app_data_file levelFrom=all