Chris PeBenito 17de1b
## <summary>SELinux MLS/MCS label translation service.</summary>
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Allow a domain to translate contexts.
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(`setrans_translate_context',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type setrans_t, setrans_var_run_t;
Chris PeBenito b1a903
		class context translate;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito a8671a
	allow $1 setrans_t:context translate;
Chris PeBenito 3f67f7
	stream_connect_pattern($1, setrans_var_run_t, setrans_var_run_t, setrans_t)
Chris PeBenito 17de1b
	files_list_pids($1)
Chris PeBenito 17de1b
')