blob: 4616eb170d941cf490f8a69585b26882741e107a [file] [log] [blame]
Stephen Smalley2dd4e512012-01-04 12:33:27 -05001# Network types
2type node, node_type;
3type netif, netif_type;
4type port, port_type;
Stephen Smalleyca0759b2013-09-30 15:07:55 -04005
6# Use network sockets.
Stephen Smalley85708ec2014-02-24 10:48:03 -05007allow netdomain self:tcp_socket create_stream_socket_perms;
8allow netdomain self:{ udp_socket rawip_socket } create_socket_perms;
Stephen Smalleyca0759b2013-09-30 15:07:55 -04009# Connect to ports.
10allow netdomain port_type:tcp_socket name_connect;
11# Bind to ports.
12allow netdomain node_type:{ tcp_socket udp_socket } node_bind;
13allow netdomain port_type:udp_socket name_bind;
14allow netdomain port_type:tcp_socket name_bind;
Stephen Smalley85708ec2014-02-24 10:48:03 -050015# See changes to the routing table.
Jeff Vander Stoep90ccbcf2016-04-26 11:29:14 -070016allow netdomain self:netlink_route_socket { create read getattr write setattr lock append bind connect getopt setopt shutdown nlmsg_read };
Stephen Smalleyca0759b2013-09-30 15:07:55 -040017
18# Talks to netd via dnsproxyd socket.
19unix_socket_connect(netdomain, dnsproxyd, netd)
Stephen Smalley96ff4c02014-02-24 13:04:49 -050020
Sreeram Ramachandranf74d7812014-05-01 11:12:10 -070021# Talks to netd via fwmarkd socket.
22unix_socket_connect(netdomain, fwmarkd, netd)
23
Stephen Smalley96ff4c02014-02-24 13:04:49 -050024# Connect to mdnsd via mdnsd socket.
25unix_socket_connect(netdomain, mdnsd, mdnsd)