Chris PeBenito 350948
## <summary>Canna - kana-kanji conversion server</summary>
Chris PeBenito 350948
Chris PeBenito 350948
########################################
Chris PeBenito 350948
## <summary>
Chris PeBenito 350948
##	Connect to Canna using a unix domain stream socket.
Chris PeBenito 350948
## </summary>
Chris PeBenito 350948
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 350948
##	Domain allowed access.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 350948
## </param>
Chris PeBenito 350948
#
Chris PeBenito 350948
interface(`canna_stream_connect',`
Chris PeBenito 350948
	gen_require(`
Chris PeBenito 350948
		type canna_t, canna_var_run_t;
Chris PeBenito 350948
	')
Chris PeBenito 350948
Chris PeBenito 350948
	files_search_pids($1)
Chris PeBenito 350948
	allow $1 canna_var_run_t:dir search;
Chris PeBenito 350948
	allow $1 canna_var_run_t:sock_file write;
Chris PeBenito 350948
	allow $1 canna_t:unix_stream_socket connectto;
Chris PeBenito 350948
')