Chris PeBenito 6a21ce
## <summary>Authoritative only name server</summary>
Chris PeBenito 6a21ce
Chris PeBenito 6a21ce
########################################
Chris PeBenito 6a21ce
## <summary>
Chris PeBenito 6a21ce
##	Send and receive datagrams from NSD.
Chris PeBenito 6a21ce
## </summary>
Chris PeBenito 6a21ce
## <param name="domain">
Chris PeBenito 6a21ce
##	<summary>
Chris PeBenito 6a21ce
##	Domain allowed access.
Chris PeBenito 6a21ce
##	</summary>
Chris PeBenito 6a21ce
## </param>
Chris PeBenito 6a21ce
#
Chris PeBenito 6a21ce
interface(`nsd_udp_chat',`
Chris PeBenito 6a21ce
	gen_require(`
Chris PeBenito 6a21ce
		type nsd_t;
Chris PeBenito 6a21ce
	')
Chris PeBenito 6a21ce
	allow $1 nsd_t:udp_socket sendto;
Chris PeBenito 6a21ce
	allow nsd_t $1:udp_socket recvfrom;
Chris PeBenito 6a21ce
')
Chris PeBenito 6a21ce
Chris PeBenito 6a21ce
########################################
Chris PeBenito 6a21ce
## <summary>
Chris PeBenito 6a21ce
##	Connect to NSD over a TCP socket
Chris PeBenito 6a21ce
## </summary>
Chris PeBenito 6a21ce
## <param name="domain">
Chris PeBenito 6a21ce
##	<summary>
Chris PeBenito 6a21ce
##	Domain allowed access.
Chris PeBenito 6a21ce
##	</summary>
Chris PeBenito 6a21ce
## </param>
Chris PeBenito 6a21ce
#
Chris PeBenito 6a21ce
interface(`nsd_tcp_connect',`
Chris PeBenito 6a21ce
	gen_require(`
Chris PeBenito 6a21ce
		type nsd_t;
Chris PeBenito 6a21ce
	')
Chris PeBenito 6a21ce
Chris PeBenito 6a21ce
	allow $1 nsd_t:tcp_socket { connectto recvfrom };
Chris PeBenito 6a21ce
	allow nsd_t $1:tcp_socket { acceptfrom recvfrom };
Chris PeBenito 6a21ce
	kernel_tcp_recvfrom($1)
Chris PeBenito 6a21ce
')