Zhanglong Xia | b2d1fbb | 2023-06-14 05:26:15 +0000 | [diff] [blame] | 1 | # |
| 2 | # ot_rcp is the simulated Thread Radio Coprocessor device which is used by |
| 3 | # Thread Network HAL for simulating the Thread radio chip. |
| 4 | # |
| 5 | type ot_rcp, domain; |
| 6 | type ot_rcp_exec, exec_type, vendor_file_type, file_type; |
| 7 | |
Zhanglong Xia | b2d1fbb | 2023-06-14 05:26:15 +0000 | [diff] [blame] | 8 | domain_auto_trans(hal_threadnetwork_default, ot_rcp_exec, ot_rcp) |
| 9 | allow hal_threadnetwork_default devpts:chr_file {open read write ioctl}; |
Yakun Xu | c5f8e95 | 2024-05-09 17:05:04 +0800 | [diff] [blame] | 10 | allow hal_threadnetwork_default ot_rcp:process signal; |
Zhanglong Xia | b2d1fbb | 2023-06-14 05:26:15 +0000 | [diff] [blame] | 11 | allow ot_rcp hal_threadnetwork_default:fd use; |
| 12 | allow ot_rcp hal_threadnetwork_default:fifo_file rw_file_perms; |
Kangping Dong | fce4ea7 | 2023-08-02 21:42:55 +0800 | [diff] [blame] | 13 | allow ot_rcp devpts:chr_file {read write ioctl}; |
Yakun Xu | c5f8e95 | 2024-05-09 17:05:04 +0800 | [diff] [blame] | 14 | allow ot_rcp self:udp_socket { bind create ioctl read setopt write }; |
Zhanglong Xia | b2d1fbb | 2023-06-14 05:26:15 +0000 | [diff] [blame] | 15 | allow ot_rcp node:udp_socket node_bind; |
| 16 | allow ot_rcp port:udp_socket name_bind; |
Yakun Xu | c5f8e95 | 2024-05-09 17:05:04 +0800 | [diff] [blame] | 17 | allow ot_rcp self:netlink_route_socket { nlmsg_read nlmsg_readpriv create read write }; |