recovery_refresh.te 794 B

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