xref: /aosp_15_r20/system/sepolicy/private/service.te (revision e4a36f4174b17bbab9dc043f4a65dc8d87377290)
1*e4a36f41SAndroid Build Coastguard Workertype ambient_context_service,        app_api_service, system_server_service, service_manager_type;
2*e4a36f41SAndroid Build Coastguard Workertype authentication_policy_service,  system_api_service, system_server_service, service_manager_type;
3*e4a36f41SAndroid Build Coastguard Worker
4*e4a36f41SAndroid Build Coastguard Worker# These types will be public starting at board api 202504
5*e4a36f41SAndroid Build Coastguard Workeruntil_board_api(202504, `
6*e4a36f41SAndroid Build Coastguard Worker    type app_function_service, app_api_service, system_server_service, service_manager_type;
7*e4a36f41SAndroid Build Coastguard Worker')
8*e4a36f41SAndroid Build Coastguard Workertype attention_service,              system_server_service, service_manager_type;
9*e4a36f41SAndroid Build Coastguard Workertype bg_install_control_service,     system_api_service, system_server_service, service_manager_type;
10*e4a36f41SAndroid Build Coastguard Workertype compos_service,                 service_manager_type;
11*e4a36f41SAndroid Build Coastguard Workertype communal_service,               app_api_service, system_server_service, service_manager_type;
12*e4a36f41SAndroid Build Coastguard Workertype dynamic_system_service,         system_api_service, system_server_service, service_manager_type;
13*e4a36f41SAndroid Build Coastguard Workertype feature_flags_service,          app_api_service, system_server_service, service_manager_type;
14*e4a36f41SAndroid Build Coastguard Workertype fwk_devicestate_service, system_server_service, service_manager_type;
15*e4a36f41SAndroid Build Coastguard Workertype gsi_service,                    service_manager_type;
16*e4a36f41SAndroid Build Coastguard Workertype incidentcompanion_service,      app_api_service, system_api_service, system_server_service, service_manager_type;
17*e4a36f41SAndroid Build Coastguard Workertype logcat_service,                 system_server_service, service_manager_type;
18*e4a36f41SAndroid Build Coastguard Workertype logd_service,                   service_manager_type;
19*e4a36f41SAndroid Build Coastguard Workertype mediatuner_service,             app_api_service, service_manager_type;
20*e4a36f41SAndroid Build Coastguard Workertype mmd_service,                    service_manager_type;
21*e4a36f41SAndroid Build Coastguard Workertype on_device_intelligence_service, app_api_service, system_server_service, service_manager_type, isolated_compute_allowed_service;
22*e4a36f41SAndroid Build Coastguard Workertype profcollectd_service,           service_manager_type;
23*e4a36f41SAndroid Build Coastguard Workertype protolog_configuration_service, app_api_service, system_api_service, system_server_service, service_manager_type;
24*e4a36f41SAndroid Build Coastguard Workertype resolver_service,               system_server_service, service_manager_type;
25*e4a36f41SAndroid Build Coastguard Workertype rkpd_registrar_service,         service_manager_type;
26*e4a36f41SAndroid Build Coastguard Workertype rkpd_refresh_service,           service_manager_type;
27*e4a36f41SAndroid Build Coastguard Workertype rkp_cert_processor_service,     service_manager_type;
28*e4a36f41SAndroid Build Coastguard Workertype safety_center_service,          app_api_service, system_api_service, system_server_service, service_manager_type;
29*e4a36f41SAndroid Build Coastguard Workertype stats_service,                  service_manager_type;
30*e4a36f41SAndroid Build Coastguard Workertype statsbootstrap_service,         system_server_service, service_manager_type;
31*e4a36f41SAndroid Build Coastguard Workertype statscompanion_service,         system_server_service, service_manager_type;
32*e4a36f41SAndroid Build Coastguard Workertype statsmanager_service,           system_api_service, system_server_service, service_manager_type;
33*e4a36f41SAndroid Build Coastguard Workeruntil_board_api(202504, `
34*e4a36f41SAndroid Build Coastguard Worker    type media_quality_service, app_api_service, ephemeral_app_api_service, system_server_service, service_manager_type;
35*e4a36f41SAndroid Build Coastguard Worker')
36*e4a36f41SAndroid Build Coastguard Worker
37*e4a36f41SAndroid Build Coastguard Workeruntil_board_api(202504, `
38*e4a36f41SAndroid Build Coastguard Worker    type hal_mediaquality_service, protected_service, hal_service_type, service_manager_type;
39*e4a36f41SAndroid Build Coastguard Worker')
40*e4a36f41SAndroid Build Coastguard Worker
41*e4a36f41SAndroid Build Coastguard Workeris_flag_enabled(RELEASE_SUPERVISION_SERVICE, `
42*e4a36f41SAndroid Build Coastguard Worker    type supervision_service, app_api_service, ephemeral_app_api_service, system_server_service, service_manager_type;
43*e4a36f41SAndroid Build Coastguard Worker')
44*e4a36f41SAndroid Build Coastguard Workertype tracingproxy_service,          system_server_service, service_manager_type;
45*e4a36f41SAndroid Build Coastguard Workertype tradeinmode_service,           system_server_service, service_manager_type;
46*e4a36f41SAndroid Build Coastguard Workertype transparency_service,          system_server_service, service_manager_type;
47*e4a36f41SAndroid Build Coastguard Worker
48*e4a36f41SAndroid Build Coastguard Workeris_flag_enabled(RELEASE_AVF_ENABLE_DEVICE_ASSIGNMENT, `
49*e4a36f41SAndroid Build Coastguard Worker    type vfio_handler_service,          service_manager_type;
50*e4a36f41SAndroid Build Coastguard Worker')
51*e4a36f41SAndroid Build Coastguard Workeris_flag_enabled(RELEASE_AVF_ENABLE_LLPVM_CHANGES, `
52*e4a36f41SAndroid Build Coastguard Worker    type virtualization_maintenance_service, service_manager_type;
53*e4a36f41SAndroid Build Coastguard Worker')
54*e4a36f41SAndroid Build Coastguard Workeris_flag_enabled(RELEASE_AVF_ENABLE_NETWORK, `
55*e4a36f41SAndroid Build Coastguard Worker    type vm_tethering_service, system_server_service, service_manager_type;
56*e4a36f41SAndroid Build Coastguard Worker    type vmnic_service,        service_manager_type;
57*e4a36f41SAndroid Build Coastguard Worker')
58*e4a36f41SAndroid Build Coastguard Workeris_flag_enabled(RELEASE_AVF_ENABLE_MICROFUCHSIA, `
59*e4a36f41SAndroid Build Coastguard Worker    type microfuchsia_service,          service_manager_type;
60*e4a36f41SAndroid Build Coastguard Worker')
61*e4a36f41SAndroid Build Coastguard Worker
62*e4a36f41SAndroid Build Coastguard Workertype uce_service,                      service_manager_type;
63*e4a36f41SAndroid Build Coastguard Workertype wearable_sensing_service,         app_api_service, system_server_service, service_manager_type;
64*e4a36f41SAndroid Build Coastguard Workertype wifi_mainline_supplicant_service, service_manager_type;
65*e4a36f41SAndroid Build Coastguard Worker
66*e4a36f41SAndroid Build Coastguard Worker###
67*e4a36f41SAndroid Build Coastguard Worker### Neverallow rules
68*e4a36f41SAndroid Build Coastguard Worker###
69*e4a36f41SAndroid Build Coastguard Worker
70*e4a36f41SAndroid Build Coastguard Worker# servicemanager handles registering or looking up named services.
71*e4a36f41SAndroid Build Coastguard Worker# It does not make sense to register or lookup something which is not a service.
72*e4a36f41SAndroid Build Coastguard Worker# Trigger a compile error if this occurs.
73*e4a36f41SAndroid Build Coastguard Workerneverallow domain ~{ service_manager_type vndservice_manager_type }:service_manager { add find };
74