1type vendor_subsystem_ramdump, domain; 2type vendor_subsystem_ramdump_exec, exec_type, vendor_file_type, file_type; 3init_daemon_domain(vendor_subsystem_ramdump); 4 5userdebug_or_eng(` 6 allow vendor_subsystem_ramdump ramdump_device:chr_file r_file_perms; 7 allow vendor_subsystem_ramdump device:dir r_dir_perms; 8 9 allow vendor_subsystem_ramdump proc_sysrq:file w_file_perms; 10 11 allow vendor_subsystem_ramdump ramdump_vendor_data_file:file create_file_perms; 12 allow vendor_subsystem_ramdump ramdump_vendor_data_file:dir rw_dir_perms; 13 14 r_dir_file(vendor_subsystem_ramdump, sysfs_msm_subsys) 15 16 allow vendor_subsystem_ramdump sysfs_ssr:file r_file_perms; 17 18 allow vendor_subsystem_ramdump ssr_log_file:dir rw_dir_perms; 19 allow vendor_subsystem_ramdump ssr_log_file:file create_file_perms; 20 21 set_prop(vendor_subsystem_ramdump, vendor_ssr_prop); 22 get_prop(vendor_subsystem_ramdump, vendor_ramdump_prop); 23') 24