Chris PeBenito 17de1b
## <summary>NX remote desktop</summary>
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Transition to NX server.
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(`nx_spec_domtrans_server',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type nx_server_t, nx_server_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
	spec_domtrans_pattern($1, nx_server_exec_t, nx_server_t)
Chris PeBenito 17de1b
')
Jeremy Solt 316cdb
Jeremy Solt 316cdb
########################################
Jeremy Solt 316cdb
## <summary>
Jeremy Solt 316cdb
##	Read nx home directory content
Jeremy Solt 316cdb
## </summary>
Jeremy Solt 316cdb
## <param name="domain">
Jeremy Solt 316cdb
##	<summary>
Jeremy Solt 316cdb
##	Domain allowed access.
Jeremy Solt 316cdb
##	</summary>
Jeremy Solt 316cdb
## </param>
Jeremy Solt 316cdb
#
Jeremy Solt 316cdb
interface(`nx_read_home_files',`
Jeremy Solt 316cdb
	gen_require(`
Jeremy Solt 316cdb
		type nx_server_home_ssh_t, nx_server_var_lib_t;
Jeremy Solt 316cdb
	')
Jeremy Solt 316cdb
Jeremy Solt 316cdb
	allow $1 nx_server_var_lib_t:dir search_dir_perms;
Jeremy Solt 316cdb
	read_files_pattern($1, nx_server_home_ssh_t, nx_server_home_ssh_t)
Jeremy Solt 316cdb
')
Jeremy Solt 316cdb
Jeremy Solt 316cdb
########################################
Jeremy Solt 316cdb
## <summary>
Jeremy Solt 316cdb
##	Read nx /var/lib content
Jeremy Solt 316cdb
## </summary>
Jeremy Solt 316cdb
## <param name="domain">
Jeremy Solt 316cdb
##	<summary>
Jeremy Solt 316cdb
##	Domain allowed access.
Jeremy Solt 316cdb
##	</summary>
Jeremy Solt 316cdb
## </param>
Jeremy Solt 316cdb
#
Jeremy Solt 316cdb
interface(`nx_search_var_lib',`
Jeremy Solt 316cdb
	gen_require(`
Jeremy Solt 316cdb
		type nx_server_var_lib_t;
Jeremy Solt 316cdb
	')
Jeremy Solt 316cdb
Jeremy Solt 316cdb
	allow $1 nx_server_var_lib_t:dir search_dir_perms;
Jeremy Solt 316cdb
')
Jeremy Solt 316cdb
Jeremy Solt 316cdb
########################################
Jeremy Solt 316cdb
## <summary>
Jeremy Solt 316cdb
##	Create an object in the root directory, with a private
Jeremy Solt 316cdb
##	type using a type transition.
Jeremy Solt 316cdb
## </summary>
Jeremy Solt 316cdb
## <param name="domain">
Jeremy Solt 316cdb
##	<summary>
Jeremy Solt 316cdb
##	Domain allowed access.
Jeremy Solt 316cdb
##	</summary>
Jeremy Solt 316cdb
## </param>
Jeremy Solt 316cdb
## <param name="private type">
Jeremy Solt 316cdb
##	<summary>
Jeremy Solt 316cdb
##	The type of the object to be created.
Jeremy Solt 316cdb
##	</summary>
Jeremy Solt 316cdb
## </param>
Jeremy Solt 316cdb
## <param name="object">
Jeremy Solt 316cdb
##	<summary>
Jeremy Solt 316cdb
##	The object class of the object being created.
Jeremy Solt 316cdb
##	</summary>
Jeremy Solt 316cdb
## </param>
Jeremy Solt 316cdb
#
Jeremy Solt 316cdb
interface(`nx_var_lib_filetrans',`
Jeremy Solt 316cdb
	gen_require(`
Jeremy Solt 316cdb
		type nx_server_var_lib_t;
Jeremy Solt 316cdb
	')
Jeremy Solt 316cdb
Jeremy Solt 316cdb
	filetrans_pattern($1, nx_server_var_lib_t, $2, $3)
Jeremy Solt 316cdb
')