blob: fa196fa0c3e4a30c5aa15b49d0a477d84eda021c [file] [log] [blame]
Alex Klyubinf5446eb2017-03-23 14:27:32 -07001typeattribute shell coredomain;
2
Siarhei Vishniakou2a7f5712017-05-10 19:37:06 -07003# allow shell input injection
4allow shell uhid_device:chr_file rw_file_perms;
5
dcashman2e00e632016-10-12 14:58:09 -07006# systrace support - allow atrace to run
7allow shell debugfs_tracing:dir r_dir_perms;
Joel Galenson27c0aa72017-07-26 16:22:50 -07008allow shell debugfs_tracing:file rw_file_perms;
9
dcashman2e00e632016-10-12 14:58:09 -070010allow shell debugfs_trace_marker:file getattr;
11allow shell atrace_exec:file rx_file_perms;
12
dcashman3e8dbf02016-12-08 11:23:34 -080013# Run app_process.
14# XXX Transition into its own domain?
15app_domain(shell)
Jin Qianaf3eaf02017-03-23 12:28:20 -070016
17# allow shell to call dumpsys storaged
18binder_call(shell, storaged)
Nick Kralevich14e2e922017-05-08 09:51:59 -070019
20# Perform SELinux access checks, needed for CTS
21selinux_check_access(shell)
22selinux_check_context(shell)