blob: 3d56bf43f060d946bd765a2fcad410b7d61f0724 [file] [log] [blame]
Zhanglong Xiab2d1fbb2023-06-14 05:26:15 +00001#
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#
5type ot_rcp, domain;
6type ot_rcp_exec, exec_type, vendor_file_type, file_type;
7
Zhanglong Xiab2d1fbb2023-06-14 05:26:15 +00008domain_auto_trans(hal_threadnetwork_default, ot_rcp_exec, ot_rcp)
9allow hal_threadnetwork_default devpts:chr_file {open read write ioctl};
Yakun Xuc5f8e952024-05-09 17:05:04 +080010allow hal_threadnetwork_default ot_rcp:process signal;
Zhanglong Xiab2d1fbb2023-06-14 05:26:15 +000011allow ot_rcp hal_threadnetwork_default:fd use;
12allow ot_rcp hal_threadnetwork_default:fifo_file rw_file_perms;
Kangping Dongfce4ea72023-08-02 21:42:55 +080013allow ot_rcp devpts:chr_file {read write ioctl};
Yakun Xuc5f8e952024-05-09 17:05:04 +080014allow ot_rcp self:udp_socket { bind create ioctl read setopt write };
Zhanglong Xiab2d1fbb2023-06-14 05:26:15 +000015allow ot_rcp node:udp_socket node_bind;
16allow ot_rcp port:udp_socket name_bind;
Yakun Xuc5f8e952024-05-09 17:05:04 +080017allow ot_rcp self:netlink_route_socket { nlmsg_read nlmsg_readpriv create read write };