sepolicy: legacy: Add vendor_ prefix on hal_srvctracker

* This align servicetracker with sepolicy vndr
* This also remove the old servicetracker attributes

Change-Id: I762fa6fe5643e357449fb0e3e4bf92fe0d3aae9e
Signed-off-by: Jprimero15 <jprimero15@aospa.co>
This commit is contained in:
Jprimero15 2024-04-03 07:34:03 +08:00
parent a19ab4188d
commit 600c798938
No known key found for this signature in database
GPG Key ID: 5FEAF384B6BF82AD
3 changed files with 7 additions and 11 deletions

View File

@ -114,10 +114,6 @@ attribute hal_wifilearner;
attribute hal_wifilearner_client; attribute hal_wifilearner_client;
attribute hal_wifilearner_server; attribute hal_wifilearner_server;
attribute hal_srvctracker;
attribute hal_srvctracker_client;
attribute hal_srvctracker_server;
attribute hal_fm; attribute hal_fm;
attribute hal_fm_client; attribute hal_fm_client;
attribute hal_fm_server; attribute hal_fm_server;

View File

@ -28,17 +28,17 @@
#Define Domain #Define Domain
type vendor_hal_srvctracker_default, domain; type vendor_hal_srvctracker_default, domain;
type vendor_hal_srvctracker_default_exec, exec_type, vendor_file_type, file_type; 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) init_daemon_domain(vendor_hal_srvctracker_default)
binder_call(hal_srvctracker_client, hal_srvctracker_server) binder_call(vendor_hal_srvctracker_client, vendor_hal_srvctracker_server)
binder_call(hal_srvctracker_server, hal_srvctracker_client) 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) hal_attribute_service(vendor_hal_srvctracker, vendor_hal_servicetrackeraidl_service)
binder_call(vendor_hal_srvctracker_server, servicemanager) binder_call(vendor_hal_srvctracker_server, servicemanager)
allow hal_srvctracker_client vendor_hal_srvctracker_hwservice:hwservice_manager find; allow vendor_hal_srvctracker_client vendor_hal_srvctracker_hwservice:hwservice_manager find;
hwbinder_use(hal_srvctracker) hwbinder_use(vendor_hal_srvctracker)
get_prop(vendor_hal_srvctracker_default, hwservicemanager_prop) get_prop(vendor_hal_srvctracker_default, hwservicemanager_prop)

View File

@ -55,7 +55,7 @@ allow system_server bluetooth:unix_stream_socket connectto;
unix_socket_send(system_server, iop, dumpstate) unix_socket_send(system_server, iop, dumpstate)
unix_socket_connect(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 # allow system/framework applications to update the dpmd configuration files
#unix_socket_connect(system_server, dpmd, dpmd); #unix_socket_connect(system_server, dpmd, dpmd);