Fix sepolicy name conflict

Need to distinguish between power stats hal's main service and the vendor service that it runs to provide an AIDL interface to other userspace stats providers.

This also uncovered a problem where con_monitor_app was not labeled as coredomain.
Bug: 162472196
Bug: 162964335
Test: m

Merged-In: I7e325375a2e34aec84cdb8176ab6fd3036bce311
Change-Id: Ie436cf0362a5e63446a325471b2a8a7722dd74dd
This commit is contained in:
Benjamin Schwartz
2020-08-05 09:14:57 -07:00
parent dd9eb7e632
commit 40eb67e0f1
4 changed files with 1 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
# ConnectivityMonitor app
type con_monitor_app, domain;
type con_monitor_app, domain, coredomain;
app_domain(con_monitor_app)

View File

@@ -6,7 +6,3 @@ get_prop(hal_power_stats_default, wifi_hal_prop) # Needed to detect wifi on/off
# power.stats HAL needs access to the easel sysfs node
r_dir_file(hal_power_stats_default, sysfs_easel)
# Allow power.stats HAL to add the power_stats_service
vndbinder_use(hal_power_stats)
add_service(hal_power_stats_server, power_stats_service)

View File

@@ -1,4 +1,3 @@
type qdisplay_service, vndservice_manager_type;
type per_mgr_service, vndservice_manager_type;
type power_stats_service, vndservice_manager_type;

View File

@@ -1,4 +1,2 @@
display.qservice u:object_r:qdisplay_service:s0
vendor.qcom.PeripheralManager u:object_r:per_mgr_service:s0
power.stats-vendor u:object_r:power_stats_service:s0