2015-03-19 17:35:31 +01:00
|
|
|
# File types must be defined for file_contexts.
|
|
|
|
type procrank_exec, exec_type, file_type;
|
|
|
|
|
|
|
|
userdebug_or_eng(`
|
|
|
|
type procrank, domain, mlstrustedsubject;
|
|
|
|
|
|
|
|
domain_auto_trans(shell, procrank_exec, procrank)
|
2015-03-19 19:18:03 +01:00
|
|
|
domain_auto_trans(dumpstate, procrank_exec, procrank)
|
2015-03-19 17:35:31 +01:00
|
|
|
allow procrank self:capability sys_ptrace;
|
|
|
|
allow procrank devpts:chr_file { read write getattr ioctl };
|
2015-03-19 19:18:03 +01:00
|
|
|
allow procrank dumpstate:unix_stream_socket { read write getattr };
|
2015-03-19 17:35:31 +01:00
|
|
|
r_dir_file(procrank, domain)
|
2015-03-19 19:18:03 +01:00
|
|
|
allow procrank { shell dumpstate }:fd use;
|
2015-03-19 17:35:31 +01:00
|
|
|
allow procrank adbd:process sigchld;
|
|
|
|
')
|