diff options
author | Ever Rosales <everrosales@google.com> | 2022-06-10 00:17:38 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-06-10 00:17:38 +0000 |
commit | 9b48791ccd44486201e4bbdd0652b74e070000d8 (patch) | |
tree | 65193babfc8f2c960ca128317ea022aacfe014bd | |
parent | f6296b27a4fde8860795f5d933e82e4488dc3bdb (diff) | |
parent | 8dc87548dccf3ba780dd9ced90c578e61ce362e4 (diff) |
Adding new CTPM sepolicy and domain. am: 8dc87548dc
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/pixel-sepolicy/+/18775444
Change-Id: I5e4f4e4e8dda66ae9f67043fa48673c4aadc9f5d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | connectivity_thermal_power_manager/connectivity_thermal_power_manager.te | 15 | ||||
-rw-r--r-- | connectivity_thermal_power_manager/seapp_contexts | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/connectivity_thermal_power_manager/connectivity_thermal_power_manager.te b/connectivity_thermal_power_manager/connectivity_thermal_power_manager.te new file mode 100644 index 0000000..54b2e8c --- /dev/null +++ b/connectivity_thermal_power_manager/connectivity_thermal_power_manager.te @@ -0,0 +1,15 @@ +# platform_apps cannot access PowerHAL, so we need to define our own domain. +# Since we're defining and moving CTPM to its own domain, we need to assign +# all of the previous permissions that we had as a platform_app + +type connectivity_thermal_power_manager, domain, coredomain, system_suspend_internal_server; + +app_domain(connectivity_thermal_power_manager) + +# register previous permissions we had as a platform_app +allow connectivity_thermal_power_manager radio_service:service_manager find; +allow connectivity_thermal_power_manager app_api_service:service_manager find; +allow connectivity_thermal_power_manager system_api_service:service_manager find; + +# access power stats +hal_client_domain(connectivity_thermal_power_manager, hal_power_stats); diff --git a/connectivity_thermal_power_manager/seapp_contexts b/connectivity_thermal_power_manager/seapp_contexts new file mode 100644 index 0000000..28b2e0c --- /dev/null +++ b/connectivity_thermal_power_manager/seapp_contexts @@ -0,0 +1 @@ +user=_app seinfo=platform name=com.google.android.connectivitythermalpowermanager domain=connectivity_thermal_power_manager type=app_data_file levelFrom=all |