blob: 9dd95e30c56e343fd482c2bdfe68297c844db0e4 [file] [log] [blame]
Alex Klyubinf5446eb2017-03-23 14:27:32 -07001typeattribute recovery_refresh coredomain;
2
dcashmancc39f632016-07-22 13:13:11 -07003init_daemon_domain(recovery_refresh)
dcashman2e00e632016-10-12 14:58:09 -07004
Inseob Kim75806ef2024-03-27 17:18:41 +09005allow 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_type:dir_file_class_set write;
22
23# Write to files in /data/data or system files on /data
24neverallow recovery_refresh { app_data_file_type system_data_file }:dir_file_class_set write;
25
dcashman2e00e632016-10-12 14:58:09 -070026# recovery_refresh is not allowed to write anywhere
Pirama Arumuga Nainarce9c0c52019-06-13 15:05:15 -070027neverallow recovery_refresh {
28 file_type
29 userdebug_or_eng(`-coredump_file')
30 with_native_coverage(`-method_trace_data_file')
31}:file write;