blob: 6dd97d0dfd1442d86b94b4565b2af50cff4850ca [file] [log] [blame]
Inseob Kim7560aed2021-07-20 09:57:57 +00001# TODO(b/193504816): move this to compos APEX
Inseob Kim1f87fbd2021-07-26 05:56:31 +00002type compos, domain, coredomain, microdroid_payload;
Inseob Kim7560aed2021-07-20 09:57:57 +00003type compos_exec, exec_type, file_type, system_file_type;
4
Alan Stokesd3132822022-01-05 16:05:54 +00005# Run derive_classpath in our domain
6allow compos derive_classpath_exec:file rx_file_perms;
7allow compos apex_mnt_dir:dir r_dir_perms;
8# Ignore harmless denials on /proc/self/fd
9dontaudit compos self:dir write;
10# See b/35323867#comment3
11dontaudit compos self:global_capability_class_set dac_override;
12
Victor Hsieh3423bc42022-05-10 16:14:30 -070013# Allow settings system properties that ART expects.
Jiakai Zhang22fb5c72023-03-30 15:50:05 +010014set_prop(compos, dalvik_config_prop_type)
Victor Hsieh3423bc42022-05-10 16:14:30 -070015set_prop(compos, device_config_runtime_native_boot_prop)
16
Alan Stokes766caba2022-02-14 14:33:37 +000017# Allow running odrefresh in its own domain
Victor Hsiehf97cc1f2021-11-30 14:43:47 -080018domain_auto_trans(compos, odrefresh_exec, odrefresh)
Alan Stokes766caba2022-02-14 14:33:37 +000019
20# Allow running compos_key_helper in its own domain
21domain_auto_trans(compos, compos_key_helper_exec, compos_key_helper)
22# And killing it on error
23allow compos compos_key_helper:process sigkill;