summaryrefslogtreecommitdiff
path: root/sepolicy/init-mcfg-sh.te
blob: 024896325a2c2d30c4c2f46d7b697a977745b195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
type init-mcfg-sh, domain, device_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;