1type system_server_startup, domain, coredomain;
2type system_server_startup_tmpfs, file_type;
3
4tmpfs_domain(system_server_startup)
5
6# Create JIT memory
7allow system_server_startup self:process execmem;
8allow system_server_startup system_server_startup_tmpfs:file { execute read write open map };
9
10# Allow to pick up integrity-checked artifacts from the dalvik cache.
11allow system_server_startup dalvikcache_data_file:dir r_dir_perms;
12allow system_server_startup dalvikcache_data_file:file { r_file_perms execute };
13
14# While doing the above, will touch the apex mount dir.
15allow system_server_startup mnt_expand_file:dir getattr;
16
17# Allow system_server_startup to run setcon() and enter the
18# system_server domain
19allow system_server_startup self:process setcurrent;
20allow system_server_startup system_server:process dyntransition;
21
22# Child of the zygote.
23allow system_server_startup zygote:process sigchld;
24