Add SEPolicy for CarService to access WifiScanner
Test: manually, verified that
CarProjectionManager#getAvailableWifiChannels works.
Bug: 145996322
Change-Id: I455607258def4d01f52b5d0cd35d19951b1324a5
diff --git a/car_product/sepolicy/private/carservice_app.te b/car_product/sepolicy/private/carservice_app.te
index 6e65a8f..05c7b3f 100644
--- a/car_product/sepolicy/private/carservice_app.te
+++ b/car_product/sepolicy/private/carservice_app.te
@@ -15,8 +15,6 @@
# Allow Car Service to register its stats service with ServiceManager
add_service(carservice_app, carstats_service)
-allow carservice_app wifi_service:service_manager find;
-
# Allow Car Service to access certain system services.
# Keep alphabetically sorted.
allow carservice_app {
@@ -44,6 +42,8 @@
telecom_service
uimode_service
voiceinteraction_service
+ wifi_service
+ wifiscanner_service
}:service_manager find;
# Read and write /data/data subdirectory.