blob: 525aea1dd87bf5a7e0afda26e45c35be8902a2f0 [file] [log] [blame]
Yabin Cuiffa2b612018-11-02 14:34:06 -07001typeattribute runas_app coredomain;
2
3app_domain(runas_app)
4untrusted_app_domain(runas_app)
5net_domain(runas_app)
6bluetooth_domain(runas_app)
7
Nick Kralevich65a89c12018-12-21 10:03:50 -08008# The ability to call exec() on files in the apps home directories
Yabin Cui770a4f62019-01-07 16:37:24 -08009# when using run-as on a debuggable app. Used to run lldb/ndk-gdb/simpleperf,
10# which are copied to the apps home directories.
Nick Kralevich65a89c12018-12-21 10:03:50 -080011allow runas_app app_data_file:file execute_no_trans;
Yabin Cui770a4f62019-01-07 16:37:24 -080012
13# Allow lldb/ndk-gdb/simpleperf to read maps of debuggable app processes.
14r_dir_file(runas_app, untrusted_app_all)
15
16# Allow lldb/ndk-gdb/simpleperf to ptrace attach to debuggable app processes.
Nick Kralevich337f5642019-01-30 13:19:36 -080017allow runas_app untrusted_app_all:process { ptrace signal sigstop };