blob: 1aaaad092a33dc48f9bcdb001e97d956b0caff86 [file] [log] [blame]
Nick Kralevicha1913982015-03-19 09:35:31 -07001# File types must be defined for file_contexts.
2type procrank_exec, exec_type, file_type;
3
4userdebug_or_eng(`
5 type procrank, domain, mlstrustedsubject;
6
7 domain_auto_trans(shell, procrank_exec, procrank)
Nick Kralevichfa281f52015-03-19 11:18:03 -07008 domain_auto_trans(dumpstate, procrank_exec, procrank)
Nick Kralevicha1913982015-03-19 09:35:31 -07009 allow procrank self:capability sys_ptrace;
10 allow procrank devpts:chr_file { read write getattr ioctl };
Nick Kralevichfa281f52015-03-19 11:18:03 -070011 allow procrank dumpstate:unix_stream_socket { read write getattr };
Nick Kralevicha1913982015-03-19 09:35:31 -070012 r_dir_file(procrank, domain)
Nick Kralevichfa281f52015-03-19 11:18:03 -070013 allow procrank { shell dumpstate }:fd use;
Nick Kralevicha1913982015-03-19 09:35:31 -070014 allow procrank adbd:process sigchld;
Jeff Vander Stoep099d6322015-07-10 11:13:16 -070015 # allow procrank write to bugreport.
16 allow procrank shell_data_file:file w_file_perms;
Nick Kralevicha1913982015-03-19 09:35:31 -070017')