blob: f1427a9e2bde97e837bb22cdaa2b2f62373471f2 [file] [log] [blame]
Nick Kralevichcaf42d62018-10-04 10:57:29 -07001type system_server_startup, domain, coredomain;
Jeff Vander Stoep41a2abf2019-01-23 15:07:40 -08002type system_server_startup_tmpfs, file_type;
Nick Kralevichcaf42d62018-10-04 10:57:29 -07003
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
Andreas Gampee72ec6b2019-03-14 14:04:38 -070010# 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
Nick Kralevichcaf42d62018-10-04 10:57:29 -070017# 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;
Jeff Vander Stoep67dc2742019-04-04 09:25:15 -070021
22# Child of the zygote.
23allow system_server_startup zygote:process sigchld;