1type htc_ramdump_exec, exec_type, vendor_file_type, file_type; 2 3userdebug_or_eng(` 4type htc_ramdump, domain; 5init_daemon_domain(htc_ramdump) 6 7allow htc_ramdump kmsg_device:chr_file { append open }; 8allow htc_ramdump userdata_block_device:blk_file { read write open }; 9allow htc_ramdump self:capability { fowner fsetid sys_rawio }; 10 11set_prop(htc_ramdump, debug_prop) 12set_prop(htc_ramdump, vendor_ramdump_prop) 13 14allow htc_ramdump rootfs:file { r_file_perms }; 15allow htc_ramdump misc_block_device:blk_file { rw_file_perms }; 16allow htc_ramdump ramdump_vendor_data_file:file { create_file_perms }; 17allow htc_ramdump ramdump_vendor_data_file:dir { create_dir_perms }; 18allow htc_ramdump block_device:dir { search }; 19allow htc_ramdump ramdump_block_device:blk_file { open read }; 20 21allow htc_ramdump proc_cmdline:file r_file_perms; 22r_dir_file(htc_ramdump, sysfs_dt_firmware_android) 23') 24