blob: 2299ba092332b40c3d11f7de9c172e40ac35fbff [file] [log] [blame]
satayevafc97912021-03-19 11:08:49 +00001
2# Domain for derive_classpath
3type derive_classpath, domain, coredomain;
4type derive_classpath_exec, system_file_type, exec_type, file_type;
5init_daemon_domain(derive_classpath)
6
Artur Satayev4c6d3082021-03-29 15:39:33 +01007# Read /apex
8allow derive_classpath apex_mnt_dir:dir r_dir_perms;
9
satayevafc97912021-03-19 11:08:49 +000010# Create /data/system/environ/classpath file
11allow derive_classpath environ_system_data_file:dir rw_dir_perms;
12allow derive_classpath environ_system_data_file:file create_file_perms;
13
14# b/183079517 fails on gphone targets otherwise
15allow derive_classpath unlabeled:dir search;
Alex Light8393a052021-04-26 16:46:57 -070016
17# Allow derive_classpath to write the classpath into ota dexopt
18# - Read the ota's apex dir
19allow derive_classpath postinstall_apex_mnt_dir:dir r_dir_perms;
20# - Report the BCP to the ota's dexopt
21allow derive_classpath postinstall_dexopt:dir search;
22allow derive_classpath postinstall_dexopt:fd use;
23allow derive_classpath postinstall_dexopt:file read;
24allow derive_classpath postinstall_dexopt:lnk_file read;
25allow derive_classpath postinstall_dexopt_tmpfs:file rw_file_perms;