blob: 536261fd65b76291243c753e6a86c7b48364fca9 [file] [log] [blame]
Charles Chen3d4a6b72023-01-17 08:16:44 +00001###
2### isolated_compute_apps.
3###
4### This file defines the rules for isolated apps that requires the permission
5### to gather data with service manager and require computational resources to
6### improve the performance to process data under a sandbox. This
7### isolated_compute_app restricts data egress to protect the privacy.
8###
9### TODO(b/266923392): Clean rules for isolated_compute_app characteristics
10###
11type isolated_compute_app, domain;
12
13typeattribute isolated_compute_app coredomain;
14
15app_domain(isolated_compute_app)
16isolated_app_domain(isolated_compute_app)
17
18allow isolated_compute_app audioserver_service:service_manager find;
19allow isolated_compute_app cameraserver_service:service_manager find;
20allow isolated_compute_app content_capture_service:service_manager find;
21allow isolated_compute_app device_state_service:service_manager find;
22allow isolated_compute_app speech_recognition_service:service_manager find;
23
24# Enable access to hardware services for camera functionalilites
25hal_client_domain(isolated_compute_app, hal_allocator)
26hwbinder_use(isolated_compute_app)
27
Charles Chen3d4a6b72023-01-17 08:16:44 +000028#####
29##### Neverallow
30#####
31
32# Do not allow isolated_compute_app to access hardware service except for the
33# ones necessary for camera service.
34# TODO (b/266555480): The permission should be guarded by compliance test.
35# Remove the negation for member domains when refactorization is done.
36# neverallow isolated_compute_app {
37# hwservice_manager_type
38# -hal_graphics_allocator_hwservice
39# -hal_graphics_mapper_hwservice
40# -hidl_allocator_hwservice
41# -hidl_manager_hwservice
42# -hidl_memory_hwservice
43# }:hwservice_manager *;