blob: 90bed27e7443f84f2862106f720a7c8261188af8 [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
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(`
17 allow shell tracing_shell_writable_debug:file rw_file_perms;
18')
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)