• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# android recovery refresh log manager
2type recovery_refresh, domain;
3type recovery_refresh_exec, system_file_type, exec_type, file_type;
4
5allow recovery_refresh pstorefs:dir search;
6allow recovery_refresh pstorefs:file r_file_perms;
7# NB: domain inherits write_logd which hands us write to pmsg_device
8
9###
10### Neverallow rules
11###
12### recovery_refresh should NEVER do any of this
13
14# Block device access.
15neverallow recovery_refresh dev_type:blk_file { read write };
16
17# ptrace any other app
18neverallow recovery_refresh domain:process ptrace;
19
20# Write to /system.
21neverallow recovery_refresh system_file:dir_file_class_set write;
22
23# Write to files in /data/data or system files on /data
24neverallow recovery_refresh { app_data_file privapp_data_file system_data_file }:dir_file_class_set write;
25