type init-mcfg-sh, domain, domain_deprecated;
type init-mcfg-sh_exec, exec_type, file_type;

init_daemon_domain(init-mcfg-sh)

allow init-mcfg-sh shell_exec:file rx_file_perms;

# remove and create /data/misc/radio/modem_config
allow init-mcfg-sh radio_data_file:dir create_dir_perms;
allow init-mcfg-sh radio_data_file:file create_file_perms;

allow init-mcfg-sh firmware_file:dir r_dir_perms;
allow init-mcfg-sh firmware_file:file r_file_perms;

# execute toybox/toolbox
allow init-mcfg-sh toolbox_exec:file rx_file_perms;