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