diff --git a/sepolicy/legacy/vendor/common/attributes b/sepolicy/legacy/vendor/common/attributes index f3d567ef..c2dfd04a 100644 --- a/sepolicy/legacy/vendor/common/attributes +++ b/sepolicy/legacy/vendor/common/attributes @@ -114,10 +114,6 @@ attribute hal_wifilearner; attribute hal_wifilearner_client; attribute hal_wifilearner_server; -attribute hal_srvctracker; -attribute hal_srvctracker_client; -attribute hal_srvctracker_server; - attribute hal_fm; attribute hal_fm_client; attribute hal_fm_server; diff --git a/sepolicy/legacy/vendor/common/hal_srvctracker_default.te b/sepolicy/legacy/vendor/common/hal_srvctracker_default.te index 34e8e90c..0bfd13c4 100644 --- a/sepolicy/legacy/vendor/common/hal_srvctracker_default.te +++ b/sepolicy/legacy/vendor/common/hal_srvctracker_default.te @@ -28,17 +28,17 @@ #Define Domain type vendor_hal_srvctracker_default, domain; type vendor_hal_srvctracker_default_exec, exec_type, vendor_file_type, file_type; -hal_server_domain(vendor_hal_srvctracker_default, hal_srvctracker) +hal_server_domain(vendor_hal_srvctracker_default, vendor_hal_srvctracker) init_daemon_domain(vendor_hal_srvctracker_default) -binder_call(hal_srvctracker_client, hal_srvctracker_server) -binder_call(hal_srvctracker_server, hal_srvctracker_client) +binder_call(vendor_hal_srvctracker_client, vendor_hal_srvctracker_server) +binder_call(vendor_hal_srvctracker_server, vendor_hal_srvctracker_client) -add_hwservice(hal_srvctracker, vendor_hal_srvctracker_hwservice) +add_hwservice(vendor_hal_srvctracker, vendor_hal_srvctracker_hwservice) hal_attribute_service(vendor_hal_srvctracker, vendor_hal_servicetrackeraidl_service) binder_call(vendor_hal_srvctracker_server, servicemanager) -allow hal_srvctracker_client vendor_hal_srvctracker_hwservice:hwservice_manager find; -hwbinder_use(hal_srvctracker) +allow vendor_hal_srvctracker_client vendor_hal_srvctracker_hwservice:hwservice_manager find; +hwbinder_use(vendor_hal_srvctracker) get_prop(vendor_hal_srvctracker_default, hwservicemanager_prop) diff --git a/sepolicy/legacy/vendor/common/system_server.te b/sepolicy/legacy/vendor/common/system_server.te index 08fc2fe5..2d3b8c13 100644 --- a/sepolicy/legacy/vendor/common/system_server.te +++ b/sepolicy/legacy/vendor/common/system_server.te @@ -55,7 +55,7 @@ allow system_server bluetooth:unix_stream_socket connectto; unix_socket_send(system_server, iop, dumpstate) unix_socket_connect(system_server, iop, dumpstate) -hal_client_domain(system_server, hal_srvctracker) +hal_client_domain(system_server, vendor_hal_srvctracker) # allow system/framework applications to update the dpmd configuration files #unix_socket_connect(system_server, dpmd, dpmd);