Chris PeBenito 17de1b
## <summary>Perdition POP and IMAP proxy</summary>
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Connect to perdition over a TCP socket
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The type of the process performing this action.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`perdition_tcp_connect',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type perdition_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 perdition_t:tcp_socket { connectto recvfrom };
Chris PeBenito 17de1b
	allow perdition_t $1:tcp_socket { acceptfrom recvfrom };
Chris PeBenito 17de1b
	kernel_tcp_recvfrom($1)
Chris PeBenito 17de1b
')