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