2017-03-23 22:27:32 +01:00
|
|
|
typeattribute installd coredomain;
|
|
|
|
|
2016-07-22 22:13:11 +02:00
|
|
|
init_daemon_domain(installd)
|
|
|
|
|
2019-08-23 19:34:32 +02:00
|
|
|
# Run migrate_legacy_obb_data.sh in its own sandbox.
|
|
|
|
domain_auto_trans(installd, migrate_legacy_obb_data_exec, migrate_legacy_obb_data)
|
|
|
|
allow installd shell_exec:file rx_file_perms;
|
|
|
|
|
2016-07-22 22:13:11 +02:00
|
|
|
# Run dex2oat in its own sandbox.
|
|
|
|
domain_auto_trans(installd, dex2oat_exec, dex2oat)
|
|
|
|
|
2017-01-18 05:31:31 +01:00
|
|
|
# Run dexoptanalyzer in its own sandbox.
|
|
|
|
domain_auto_trans(installd, dexoptanalyzer_exec, dexoptanalyzer)
|
|
|
|
|
2019-01-11 17:13:01 +01:00
|
|
|
# Run viewcompiler in its own sandbox.
|
|
|
|
domain_auto_trans(installd, viewcompiler_exec, viewcompiler)
|
|
|
|
|
2016-07-22 22:13:11 +02:00
|
|
|
# Run profman in its own sandbox.
|
|
|
|
domain_auto_trans(installd, profman_exec, profman)
|
|
|
|
|
|
|
|
# Run idmap in its own sandbox.
|
|
|
|
domain_auto_trans(installd, idmap_exec, idmap)
|
2016-10-12 23:58:09 +02:00
|
|
|
|
2018-02-14 23:32:38 +01:00
|
|
|
# For collecting bugreports.
|
|
|
|
allow installd dumpstate:fd use;
|
|
|
|
allow installd dumpstate:fifo_file r_file_perms;
|
2018-12-12 18:06:05 +01:00
|
|
|
|
|
|
|
# Delete /system/bin/bcc generated artifacts
|
2019-01-11 18:37:46 +01:00
|
|
|
allow installd app_exec_data_file:file unlink;
|
2019-01-17 14:38:05 +01:00
|
|
|
|
|
|
|
# Capture userdata snapshots to /data/misc_[ce|de]/rollback and
|
|
|
|
# subsequently restore them.
|
|
|
|
allow installd rollback_data_file:dir create_dir_perms;
|
|
|
|
allow installd rollback_data_file:file create_file_perms;
|
2019-01-31 22:21:39 +01:00
|
|
|
|
|
|
|
# Allow installd to access the runtime feature flag properties.
|
|
|
|
get_prop(installd, device_config_runtime_native_prop)
|
2019-02-25 21:45:14 +01:00
|
|
|
get_prop(installd, device_config_runtime_native_boot_prop)
|
2019-02-19 13:21:59 +01:00
|
|
|
|
2019-11-27 19:06:03 +01:00
|
|
|
# Allow installd to access apk verity feature flag (for legacy case).
|
|
|
|
get_prop(installd, apk_verity_prop)
|
|
|
|
|
2021-07-01 14:29:37 +02:00
|
|
|
# Allow installd to access odsign verification status
|
|
|
|
get_prop(installd, odsign_prop)
|
|
|
|
|
2019-02-19 13:21:59 +01:00
|
|
|
# Allow installd to delete files in /data/staging
|
|
|
|
allow installd staging_data_file:file unlink;
|
|
|
|
allow installd staging_data_file:dir { open read remove_name rmdir search write };
|
2021-07-15 05:05:41 +02:00
|
|
|
|
|
|
|
allow installd { dex2oat dexoptanalyzer }:process { sigkill signal };
|