1type rfsd, domain;
2type rfsd_exec, vendor_file_type, exec_type, file_type;
3init_daemon_domain(rfsd)
4
5# Allow to search block device and mnt dir for modem EFS partitions
6allow rfsd mnt_vendor_file:dir search;
7allow rfsd block_device:dir search;
8
9# Allow to operate with modem EFS file/dir
10allow rfsd modem_efs_file:dir create_dir_perms;
11allow rfsd modem_efs_file:file create_file_perms;
12
13allow rfsd radio_vendor_data_file:dir r_dir_perms;
14allow rfsd radio_vendor_data_file:file r_file_perms;
15
16r_dir_file(rfsd, vendor_fw_file)
17
18# Allow to access rfsd log file/dir
19allow rfsd vendor_log_file:dir search;
20allow rfsd vendor_rfsd_log_file:dir create_dir_perms;
21allow rfsd vendor_rfsd_log_file:file create_file_perms;
22
23# Allow to read/write modem block device
24allow rfsd modem_block_device:blk_file rw_file_perms;
25
26# Allow to operate with radio device
27allow rfsd radio_device:chr_file rw_file_perms;
28
29# Allow to set rild and modem property
30set_prop(rfsd, vendor_modem_prop)
31set_prop(rfsd, vendor_rild_prop)
32get_prop(rfsd, vendor_cbd_prop)
33
34# Allow rfsd to access modem image file/dir
35allow rfsd modem_img_file:dir r_dir_perms;
36allow rfsd modem_img_file:file r_file_perms;
37allow rfsd modem_img_file:lnk_file r_file_perms;
38