• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
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
7# Read /apex
8allow derive_classpath apex_mnt_dir:dir r_dir_perms;
9
10# 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;
16
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;
26