blob: 064e0383c41002f3c8cbca91e5255bd0ff568427 [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
Orion Hodson7778e8c2021-06-23 16:41:14 +010010# Allow to pick up integrity-checked artifacts from the ART APEX dalvik cache.
11allow system_server_startup apex_art_data_file:dir r_dir_perms;
12allow system_server_startup apex_art_data_file:file { r_file_perms execute };
13
Nick Kralevichcaf42d62018-10-04 10:57:29 -070014# Allow system_server_startup to run setcon() and enter the
15# system_server domain
16allow system_server_startup self:process setcurrent;
17allow system_server_startup system_server:process dyntransition;
Jeff Vander Stoep67dc2742019-04-04 09:25:15 -070018
19# Child of the zygote.
20allow system_server_startup zygote:process sigchld;
Calin Juravlecf6a7e92021-06-03 08:16:22 -070021
22# Allow query ART device config properties
23get_prop(system_server_startup, device_config_runtime_native_boot_prop)
24get_prop(system_server_startup, device_config_runtime_native_prop)