1 # android recovery refresh log manager 2 type recovery_refresh, domain; 3 type recovery_refresh_exec, exec_type, file_type; 4 5 allow recovery_refresh pstorefs:dir search; 6 allow 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. 15 neverallow recovery_refresh dev_type:blk_file { read write }; 16 17 # ptrace any other app 18 neverallow recovery_refresh domain:process ptrace; 19 20 # Write to /system. 21 neverallow recovery_refresh system_file:dir_file_class_set write; 22 23 # Write to files in /data/data or system files on /data 24 neverallow recovery_refresh { app_data_file system_data_file }:dir_file_class_set write; 25