blob: 17031b974f522f99dbf8c2f9cbcdeb7394e4c0a5 [file] [log] [blame]
Alex Klyubin81991232013-05-06 13:24:27 -07001# Domain for shell processes spawned by ADB
repo sync77d47312013-05-17 17:11:29 -07002type shell, domain;
Stephen Smalley01301542013-09-27 10:38:14 -04003type shell_exec, exec_type, file_type;
repo sync77d47312013-05-17 17:11:29 -07004unconfined_domain(shell)
Stephen Smalley2dd4e512012-01-04 12:33:27 -05005
Stephen Smalley2dd4e512012-01-04 12:33:27 -05006# Run app_process.
7# XXX Split into its own domain?
8app_domain(shell)
Stephen Smalleyd99e6d52013-12-02 14:18:11 -05009
10# shell is also permissive to permit setenforce.
11permissive shell;
Stephen Smalley48759ca2013-10-29 14:42:39 -040012
13# ndk-gdb invokes adb shell ps to find the app PID.
14r_dir_file(shell, non_system_app_set)
15
16# ndk-gdb invokes adb shell ls to check the app data dir.
17allow shell app_data_file:dir search;
18
19# ndk-gdb invokes adb shell kill -9 to kill the gdbserver.
20allow shell non_system_app_set:process sigkill;