1## Network types 2type node, node_type; 3type netif, netif_type; 4type port, port_type; 5 6### 7### Domain with network access 8### 9 10# Use network sockets. 11allow netdomain self:tcp_socket create_stream_socket_perms; 12allow netdomain self:{ icmp_socket udp_socket rawip_socket } create_socket_perms; 13 14# Connect to ports. 15allow netdomain port_type:tcp_socket name_connect; 16# See changes to the routing table. 17allow netdomain self:netlink_route_socket { create read getattr write setattr lock append connect getopt setopt shutdown nlmsg_read }; 18 19# Talks to netd via dnsproxyd socket. 20unix_socket_connect(netdomain, dnsproxyd, netd) 21 22# Talks to netd via fwmarkd socket. 23unix_socket_connect(netdomain, fwmarkd, netd) 24