1 # Policy for system/bin/subsystem_ramdump 2 type subsystem_ramdump_exec, exec_type, file_type; 3 userdebug_or_eng(` 4 type subsystem_ramdump, domain; 5 init_daemon_domain(subsystem_ramdump) 6 7 allow subsystem_ramdump device:dir r_dir_perms; 8 allow subsystem_ramdump ramdump_device:chr_file r_file_perms; 9 10 r_dir_file(subsystem_ramdump, sysfs_type) 11 12 allow subsystem_ramdump ramdump_data_file:dir rw_dir_perms; 13 allow subsystem_ramdump ramdump_data_file:file create_file_perms; 14 ') 15