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