574be921af
Bug: 222479468 Test: atest MicrodroidTests MicrodroidHostTests Change-Id: I562d0d018f0dbd7d4b93c39b2bde4d2a8b50de13
22 lines
755 B
Text
22 lines
755 B
Text
type statsd, domain;
|
|
|
|
type statsd_exec, system_file_type, exec_type, file_type;
|
|
|
|
# Allow statsd to scan through /proc/pid for all processes.
|
|
r_dir_file(statsd, domain)
|
|
|
|
# Allow executing files on system, such as running a shell or running:
|
|
# /system/bin/toolbox
|
|
# /system/bin/logcat
|
|
# /system/bin/dumpsys
|
|
allow statsd devpts:chr_file { getattr ioctl read write };
|
|
allow statsd shell_exec:file rx_file_perms;
|
|
allow statsd system_file:file execute_no_trans;
|
|
allow statsd toolbox_exec:file rx_file_perms;
|
|
|
|
# Allow 'adb shell cmd' to upload configs and download output.
|
|
allow statsd adbd:fd use;
|
|
allow statsd adbd:unix_stream_socket { getattr read write };
|
|
allow statsd shell:fifo_file { getattr read write };
|
|
|
|
unix_socket_send(statsd, statsdw, statsd)
|