1type sscoredump, domain; 2type sscoredump_exec, vendor_file_type, exec_type, file_type; 3 4init_daemon_domain(sscoredump) 5 6set_prop(sscoredump, vendor_ssrdump_prop) 7 8allow sscoredump device:dir r_dir_perms; 9allow sscoredump sscoredump_device:chr_file rw_file_perms; 10allow sscoredump sscoredump_vendor_data_crashinfo_file:dir create_dir_perms; 11allow sscoredump sscoredump_vendor_data_crashinfo_file:file create_file_perms; 12allow sscoredump sysfs_sscoredump_subsystem_report_count:file r_file_perms; 13 14userdebug_or_eng(` 15 allow sscoredump sysfs_sscoredump_level:file rw_file_perms; 16 allow sscoredump sscoredump_vendor_data_coredump_file:dir create_dir_perms; 17 allow sscoredump sscoredump_vendor_data_coredump_file:file create_file_perms; 18') 19