blob: afb1f49bab954dec59c11da27e48bd6661303cff [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;
Nick Kralevich4cae28d2017-02-11 22:01:58 -08008allow shell debugfs_tracing:file r_file_perms;
9allow shell tracing_shell_writable:file rw_file_perms;
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)