2012-11-13 19:00:05 +01:00
|
|
|
type shell, domain, mlstrustedsubject;
|
2012-01-04 18:33:27 +01:00
|
|
|
type shell_exec, file_type;
|
|
|
|
domain_auto_trans(init, shell_exec, shell)
|
|
|
|
allow shell rootfs:dir r_dir_perms;
|
|
|
|
allow shell devpts:chr_file rw_file_perms;
|
|
|
|
allow shell tty_device:chr_file rw_file_perms;
|
|
|
|
allow shell console_device:chr_file rw_file_perms;
|
2013-03-26 19:00:13 +01:00
|
|
|
allow shell input_device:chr_file rw_file_perms;
|
2012-01-04 18:33:27 +01:00
|
|
|
allow shell system_file:file x_file_perms;
|
|
|
|
allow shell shell_exec:file rx_file_perms;
|
|
|
|
allow shell zygote_exec:file rx_file_perms;
|
|
|
|
allow shell shell_data_file:dir create_dir_perms;
|
|
|
|
allow shell shell_data_file:file create_file_perms;
|
|
|
|
allow shell shell_data_file:file rx_file_perms;
|
|
|
|
|
2012-03-07 20:59:01 +01:00
|
|
|
# Access sdcard.
|
2013-03-07 01:26:36 +01:00
|
|
|
allow shell sdcard_type:dir rw_dir_perms;
|
|
|
|
allow shell sdcard_type:file create_file_perms;
|
2012-01-12 14:57:50 +01:00
|
|
|
|
2012-01-04 18:33:27 +01:00
|
|
|
r_dir_file(shell, apk_data_file)
|
2013-03-26 19:00:13 +01:00
|
|
|
allow shell dalvikcache_data_file:file { write setattr };
|
2012-01-04 18:33:27 +01:00
|
|
|
|
|
|
|
# Run app_process.
|
|
|
|
# XXX Split into its own domain?
|
|
|
|
app_domain(shell)
|
2012-04-04 16:11:16 +02:00
|
|
|
|
|
|
|
# Property Service
|
|
|
|
allow shell shell_prop:property_service set;
|
|
|
|
|
|
|
|
# setprop toolbox command
|
2012-11-27 17:18:52 +01:00
|
|
|
unix_socket_connect(shell, property, init)
|
2012-04-04 16:11:16 +02:00
|
|
|
|
|
|
|
# ctl interface
|
|
|
|
allow shell ctl_dumpstate_prop:property_service set;
|