blob: 088682015e234534d14c7fc40bc0b362eb66136d [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
Yifan Hong19a87732017-05-08 14:38:45 -070013# read config.gz for CTS purposes
14allow shell config_gz:file r_file_perms;
15
Carmen Jackson25788df2017-04-14 12:12:50 -070016userdebug_or_eng(`
Joel Galenson47966ce2017-07-27 09:50:25 -070017 allow shell debugfs_tracing_debug:file rw_file_perms;
Carmen Jackson25788df2017-04-14 12:12:50 -070018')
19
dcashman3e8dbf02016-12-08 11:23:34 -080020# Run app_process.
21# XXX Transition into its own domain?
22app_domain(shell)
Jin Qiana239f302017-03-23 12:28:20 -070023
24# allow shell to call dumpsys storaged
25binder_call(shell, storaged)
Nick Kralevich14e2e922017-05-08 09:51:59 -070026
27# Perform SELinux access checks, needed for CTS
28selinux_check_access(shell)
29selinux_check_context(shell)