Revert "Adds a sepolicy for EVS manager service"
Revert submission 1967140-EVS_sepolicy_updates_T
Reason for revert: triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_master&target=cf_x86_64_auto-userdebug&lkgb=8168894&lkbb=8168958&fkbb=8168947, bug b/218802298
Reverted Changes:
I730d56ab1:Allows hal_evs_default to read directories
I2df8e10f5:Updates sepolicy for EVS HAL
Ie6cb3e269:Adds a sepolicy for EVS manager service
Change-Id: I207c261bcf2c8498d937ab02c499bf709a5f1b15
diff --git a/public/attributes b/public/attributes
index 281cf93..b97bffc 100644
--- a/public/attributes
+++ b/public/attributes
@@ -394,7 +394,6 @@
attribute automotive_display_service_server;
attribute camera_service_server;
attribute display_service_server;
-attribute evsmanager_service_server;
attribute scheduler_service_server;
attribute sensor_service_server;
attribute stats_service_server;
diff --git a/public/evsmanagerd.te b/public/evsmanagerd.te
deleted file mode 100644
index cde0380..0000000
--- a/public/evsmanagerd.te
+++ /dev/null
@@ -1,2 +0,0 @@
-# evsmanager daemon
-type evsmanagerd, domain;
diff --git a/public/hal_evs.te b/public/hal_evs.te
index e5e5fce..789333a 100644
--- a/public/hal_evs.te
+++ b/public/hal_evs.te
@@ -1,12 +1,5 @@
hwbinder_use(hal_evs_client)
hwbinder_use(hal_evs_server)
-
binder_call(hal_evs_client, hal_evs_server)
binder_call(hal_evs_server, hal_evs_client)
-
-# Below lines are equivalent to hal_attribute_hwservice(hal_evs, hal_evs_hwservice)
-# except it allows evsmanagerd to add hal_evs_hwservice.
-allow hal_evs_client hal_evs_hwservice:hwservice_manager find;
-allow hal_evs_server hal_evs_hwservice:hwservice_manager { add find };
-allow hal_evs_server hidl_base_hwservice:hwservice_manager add;
-neverallow { domain -hal_evs_server -evsmanagerd } hal_evs_hwservice:hwservice_manager add;
+hal_attribute_hwservice(hal_evs, hal_evs_hwservice)
diff --git a/public/service.te b/public/service.te
index 495b5f5..46eaff1 100644
--- a/public/service.te
+++ b/public/service.te
@@ -13,7 +13,6 @@
type dnsresolver_service, service_manager_type;
type drmserver_service, service_manager_type;
type dumpstate_service, service_manager_type;
-type evsmanagerd_service, service_manager_type;
type fingerprintd_service, service_manager_type;
type fwk_automotive_display_service, service_manager_type;
type gatekeeper_service, app_api_service, service_manager_type;