1 # bootstat command 2 type bootstat, domain; 3 type bootstat_exec, exec_type, file_type; 4 5 read_runtime_log_tags(bootstat) 6 7 # Allow persistent storage in /data/misc/bootstat. 8 allow bootstat bootstat_data_file:dir rw_dir_perms; 9 allow bootstat bootstat_data_file:file create_file_perms; 10 11 # Read access to pseudo filesystems (for /proc/uptime). 12 r_dir_file(bootstat, proc) 13 14 # Collect metrics on boot time created by init 15 get_prop(bootstat, boottime_prop) 16