blob: 3693c59316e5dc346dc39e332a8421dd4b14f650 [file] [log] [blame]
Tri Vobc8dc3a2019-05-26 13:17:08 -07001typeattribute installd coredomain;
2
3init_daemon_domain(installd)
4
5# Run dex2oat in its own sandbox.
6domain_auto_trans(installd, dex2oat_exec, dex2oat)
7
8# Run dexoptanalyzer in its own sandbox.
9domain_auto_trans(installd, dexoptanalyzer_exec, dexoptanalyzer)
10
11# Run viewcompiler in its own sandbox.
12domain_auto_trans(installd, viewcompiler_exec, viewcompiler)
13
14# Run profman in its own sandbox.
15domain_auto_trans(installd, profman_exec, profman)
16
17# Run idmap in its own sandbox.
18domain_auto_trans(installd, idmap_exec, idmap)
19
20# Create /data/.layout_version.* file
21type_transition installd system_data_file:file install_data_file;
22
23# For collecting bugreports.
24allow installd dumpstate:fd use;
25allow installd dumpstate:fifo_file r_file_perms;
26
27# Delete /system/bin/bcc generated artifacts
28allow installd app_exec_data_file:file unlink;
29
30# Capture userdata snapshots to /data/misc_[ce|de]/rollback and
31# subsequently restore them.
32allow installd rollback_data_file:dir create_dir_perms;
33allow installd rollback_data_file:file create_file_perms;
34
35# Allow installd to access the runtime feature flag properties.
36get_prop(installd, device_config_runtime_native_prop)
37get_prop(installd, device_config_runtime_native_boot_prop)
38
39# Allow installd to delete files in /data/staging
40allow installd staging_data_file:file unlink;
41allow installd staging_data_file:dir { open read remove_name rmdir search write };