2012-01-04 18:33:27 +01:00
|
|
|
# debugger interface
|
|
|
|
type debuggerd, domain;
|
|
|
|
type debuggerd_exec, exec_type, file_type;
|
|
|
|
|
|
|
|
init_daemon_domain(debuggerd)
|
2013-10-29 19:42:35 +01:00
|
|
|
typeattribute debuggerd mlstrustedsubject;
|
|
|
|
allow debuggerd self:capability { dac_override sys_ptrace chown kill fowner };
|
|
|
|
allow debuggerd self:capability2 { syslog };
|
|
|
|
allow debuggerd domain:dir r_dir_perms;
|
|
|
|
allow debuggerd domain:file r_file_perms;
|
2013-12-09 18:49:47 +01:00
|
|
|
allow debuggerd { domain -init -ueventd -watchdogd -healthd -adbd }:process ptrace;
|
2013-10-29 19:42:35 +01:00
|
|
|
security_access_policy(debuggerd)
|
|
|
|
allow debuggerd system_data_file:dir create_dir_perms;
|
|
|
|
allow debuggerd system_data_file:dir relabelfrom;
|
2013-07-13 00:38:41 +02:00
|
|
|
relabelto_domain(debuggerd)
|
|
|
|
allow debuggerd tombstone_data_file:dir relabelto;
|
2013-10-29 19:42:35 +01:00
|
|
|
allow debuggerd tombstone_data_file:dir create_dir_perms;
|
|
|
|
allow debuggerd tombstone_data_file:file create_file_perms;
|
|
|
|
allow debuggerd domain:process { sigstop signal };
|
|
|
|
allow debuggerd exec_type:file r_file_perms;
|
|
|
|
# Access app library
|
|
|
|
allow debuggerd system_data_file:file open;
|
2013-09-27 16:24:49 +02:00
|
|
|
|
|
|
|
# Connect to system_server via /data/system/ndebugsocket.
|
|
|
|
unix_socket_connect(debuggerd, system_ndebug, system_server)
|