blob: 1384835490955068d8f7dd42e0a4e80684ddc44c [file] [log] [blame]
Alex Klyubinf5446eb2017-03-23 14:27:32 -07001typeattribute tombstoned coredomain;
2
Josh Gaocb3eb4e2016-10-19 14:39:30 -07003init_daemon_domain(tombstoned)
Inseob Kim14a71fb2020-07-07 13:35:34 +09004
5get_prop(tombstoned, tombstone_config_prop)
6
Inseob Kim75806ef2024-03-27 17:18:41 +09007# Write to arbitrary pipes given to us.
8allow tombstoned domain:fd use;
9allow tombstoned domain:fifo_file write;
10
11allow tombstoned domain:dir r_dir_perms;
12allow tombstoned domain:file r_file_perms;
13allow tombstoned tombstone_data_file:dir rw_dir_perms;
14allow tombstoned tombstone_data_file:file { create_file_perms link };
15
16# Changes for the new stack dumping mechanism. Each trace goes into a
17# separate file, and these files are managed by tombstoned.
18allow tombstoned anr_data_file:dir rw_dir_perms;
19allow tombstoned anr_data_file:file { append create getattr open link unlink };
20
21###
22### Neverallow rules
23###
24
Inseob Kim14a71fb2020-07-07 13:35:34 +090025neverallow {
Inseob Kim85acf6e2021-03-10 10:42:23 +090026 domain
Inseob Kim14a71fb2020-07-07 13:35:34 +090027 -init
28 -vendor_init
29 -dumpstate
30 -tombstoned
31} tombstone_config_prop:file no_rw_file_perms;