blob: 52673489abd6600129933882acd9f4731d1fe76d [file] [log] [blame]
Alan Stokes7bde36e2022-03-09 16:41:06 +00001typeattribute shell coredomain;
Inseob Kime1389972021-07-19 07:48:34 +00002
Inseob Kime1389972021-07-19 07:48:34 +00003# Perform SELinux access checks, needed for CTS
4selinux_check_access(shell)
5selinux_check_context(shell)
6
7# Allow shell to run adb shell cmd stats commands. Needed for CTS.
8binder_call(shell, statsd);
9
Inseob Kime1389972021-07-19 07:48:34 +000010# Connect to adbd and use a socket transferred from it.
11# This is used for e.g. adb backup/restore.
12allow shell adbd:unix_stream_socket connectto;
13allow shell adbd:fd use;
14allow shell adbd:unix_stream_socket { getattr getopt ioctl read write shutdown };
15
16# filesystem test for insecure chr_file's is done
17# via a host side test
18allow shell dev_type:dir r_dir_perms;
19allow shell dev_type:chr_file getattr;
20
21# filesystem test for insucre blk_file's is done
22# via hostside test
23allow shell dev_type:blk_file getattr;
Inseob Kim76876002021-08-05 02:05:16 +000024
25# Test tool automatically tries to access /sys/class/power_supply.
26# Suppressing it as we don't need power_supply in microdroid.
27dontaudit shell sysfs:dir r_dir_perms;
Inseob Kim5ee61a72021-09-17 19:31:45 +090028
29# Test tool tries to read various service status properties.
Victor Hsieha62b3ff2022-05-02 09:47:11 -070030get_prop(shell, boot_status_prop)
Inseob Kim5ee61a72021-09-17 19:31:45 +090031get_prop(shell, init_service_status_prop)
32get_prop(shell, init_service_status_private_prop)
33
34set_prop(shell, log_tag_prop)