Lines Matching refs:shell

1 typeattribute shell coredomain, mlstrustedsubject;
3 # allow shell input injection
4 allow shell uhid_device:chr_file rw_file_perms;
7 allow shell debugfs_tracing_debug:dir r_dir_perms;
8 allow shell debugfs_tracing:dir r_dir_perms;
9 allow shell debugfs_tracing:file rw_file_perms;
10 allow shell debugfs_trace_marker:file getattr;
11 allow shell atrace_exec:file rx_file_perms;
14 allow shell debugfs_tracing_debug:file rw_file_perms;
18 allow shell config_gz:file r_file_perms;
22 app_domain(shell)
24 # allow shell to call dumpsys storaged
25 binder_call(shell, storaged)
28 selinux_check_access(shell)
29 selinux_check_context(shell)
33 unix_socket_connect(shell, traced_consumer, traced)
35 # Allow shell binaries to write trace data to Perfetto. Used for testing and
37 perfetto_producer(shell)
39 domain_auto_trans(shell, vendor_shell_exec, vendor_shell)
41 # Allow shell binaries to exec the perfetto cmdline util and have that
44 domain_auto_trans(shell, perfetto_exec, perfetto)
46 allow shell perfetto:process signal;
48 # Allow shell to run adb shell cmd stats commands. Needed for CTS.
49 binder_call(shell, statsd);
51 # Allow shell to read and unlink traces stored in /data/misc/perfetto-traces.
52 allow shell perfetto_traces_data_file:dir rw_dir_perms;
53 allow shell perfetto_traces_data_file:file { r_file_perms unlink };
55 # Allow shell to run adb shell cmd gpu commands.
56 binder_call(shell, gpuservice);
58 # Allow shell to use atrace HAL
59 hal_client_domain(shell, hal_atrace)
62 allow shell proc_net_tcp_udp:file r_file_perms;
66 allow shell system_linker_exec:file rx_file_perms;
70 allow shell rs_exec:file rx_file_perms;
72 # Allow shell to start and comminicate with lpdumpd.
73 set_prop(shell, lpdumpd_prop);
74 binder_call(shell, lpdumpd)
76 # Allow shell to set and read value of properties used for CTS tests of
78 set_prop(shell, userspace_reboot_test_prop)
80 # Allow shell to get encryption policy of /data/local/tmp/, for CTS
81 allowxperm shell shell_data_file:dir ioctl {
86 # Allow shell to execute simpleperf without a domain transition.
87 allow shell simpleperf_exec:file rx_file_perms;
89 # Allow shell to call perf_event_open for profiling other shell processes, but
91 allow shell self:perf_event { open read write kernel };
92 neverallow shell self:perf_event ~{ open read write kernel };
95 set_prop(shell, shell_prop)
96 set_prop(shell, ctl_bugreport_prop)
97 set_prop(shell, ctl_dumpstate_prop)
98 set_prop(shell, dumpstate_prop)
99 set_prop(shell, exported_dumpstate_prop)
100 set_prop(shell, debug_prop)
101 set_prop(shell, powerctl_prop)
102 set_prop(shell, log_tag_prop)
103 set_prop(shell, wifi_log_prop)
104 # Allow shell to start/stop traced via the persist.traced.enable
106 set_prop(shell, traced_enabled_prop)
108 userdebug_or_eng(`set_prop(shell, log_prop)')
110 userdebug_or_eng(`set_prop(shell, logpersistd_logging_prop)')
111 # Allow shell to start/stop heapprofd via the persist.heapprofd.enable
113 set_prop(shell, heapprofd_enabled_prop)
114 # Allow shell to start/stop traced_perf via the persist.traced_perf.enable
116 set_prop(shell, traced_perf_enabled_prop)
117 # Allow shell to start/stop gsid via ctl.start|stop|restart gsid.
118 set_prop(shell, ctl_gsid_prop)
119 # Allow shell to enable Dynamic System Update
120 set_prop(shell, dynamic_system_prop)
121 # Allow shell to mock an OTA using persist.pm.mock-upgrade
122 set_prop(shell, mock_ota_prop)
125 get_prop(shell, serialno_prop)
127 # Allow shell to read the vendor security patch level for CTS
128 get_prop(shell, vendor_security_patch_level_prop)
131 get_prop(shell, device_logging_prop)
134 get_prop(shell, bootloader_boot_reason_prop)
135 get_prop(shell, last_boot_reason_prop)
136 get_prop(shell, system_boot_reason_prop)
139 get_prop(shell, init_perf_lsm_hooks_prop)
141 userdebug_or_eng(`set_prop(shell, persist_debug_prop)')
145 allow shell profcollectd:binder call;