net.te 769 Bytes
Newer Older
Stephen Smalley's avatar
Stephen Smalley committed
1 2 3 4
# Network types
type node, node_type;
type netif, netif_type;
type port, port_type;
5 6

# Use network sockets.
7 8
allow netdomain self:tcp_socket create_stream_socket_perms;
allow netdomain self:{ udp_socket rawip_socket } create_socket_perms;
9 10 11 12 13 14
# Connect to ports.
allow netdomain port_type:tcp_socket name_connect;
# Bind to ports.
allow netdomain node_type:{ tcp_socket udp_socket } node_bind;
allow netdomain port_type:udp_socket name_bind;
allow netdomain port_type:tcp_socket name_bind;
15
# See changes to the routing table.
Stephen Smalley's avatar
Stephen Smalley committed
16
allow netdomain self:netlink_route_socket { create_socket_perms nlmsg_read };
17 18 19

# Talks to netd via dnsproxyd socket.
unix_socket_connect(netdomain, dnsproxyd, netd)
20 21 22

# Connect to mdnsd via mdnsd socket.
unix_socket_connect(netdomain, mdnsd, mdnsd)