Chris PeBenito fa45da
## <summary>Cluster Configuration System</summary>
Chris PeBenito fa45da
Chris PeBenito fa45da
########################################
Chris PeBenito fa45da
## <summary>
Chris PeBenito fa45da
##	Execute a domain transition to run ccs.
Chris PeBenito fa45da
## </summary>
Chris PeBenito fa45da
## <param name="domain">
Chris PeBenito fa45da
## <summary>
Chris PeBenito fa45da
##	Domain allowed to transition.
Chris PeBenito fa45da
## </summary>
Chris PeBenito fa45da
## </param>
Chris PeBenito fa45da
#
Chris PeBenito fa45da
interface(`ccs_domtrans',`
Chris PeBenito fa45da
	gen_require(`
Chris PeBenito fa45da
		type ccs_t, ccs_exec_t;
Chris PeBenito fa45da
	')
Chris PeBenito fa45da
Chris PeBenito c0868a
	domtrans_pattern($1,ccs_exec_t,ccs_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
########################################
Chris PeBenito fa45da
## <summary>
Chris PeBenito fa45da
##	Connect to ccs over an unix stream socket.
Chris PeBenito fa45da
## </summary>
Chris PeBenito fa45da
## <param name="domain">
Chris PeBenito fa45da
##	<summary>
Chris PeBenito fa45da
##	Domain allowed access.
Chris PeBenito fa45da
##	</summary>
Chris PeBenito fa45da
## </param>
Chris PeBenito fa45da
#
Chris PeBenito fa45da
interface(`ccs_stream_connect',`
Chris PeBenito fa45da
	gen_require(`
Chris PeBenito fa45da
		type ccs_t, ccs_var_run_t;
Chris PeBenito fa45da
	')
Chris PeBenito fa45da
Chris PeBenito fa45da
	files_search_pids($1)
Chris PeBenito c0868a
	stream_connect_pattern($1,ccs_var_run_t,ccs_var_run_t,ccs_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
########################################
Chris PeBenito fa45da
## <summary>
Chris PeBenito fa45da
##	Read cluster configuration files.
Chris PeBenito fa45da
## </summary>
Chris PeBenito fa45da
## <param name="domain">
Chris PeBenito fa45da
##	<summary>
Chris PeBenito fa45da
##	Domain allowed access.
Chris PeBenito fa45da
##	</summary>
Chris PeBenito fa45da
## </param>
Chris PeBenito fa45da
#
Chris PeBenito fa45da
interface(`ccs_read_config',`
Chris PeBenito fa45da
	gen_require(`
Chris PeBenito fa45da
		type cluster_conf_t;
Chris PeBenito fa45da
	')
Chris PeBenito fa45da
Chris PeBenito c0868a
	read_files_pattern($1,cluster_conf_t,cluster_conf_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
########################################
Chris PeBenito fa45da
## <summary>
Chris PeBenito fa45da
##	Manage cluster configuration files.
Chris PeBenito fa45da
## </summary>
Chris PeBenito fa45da
## <param name="domain">
Chris PeBenito fa45da
##	<summary>
Chris PeBenito fa45da
##	Domain allowed access.
Chris PeBenito fa45da
##	</summary>
Chris PeBenito fa45da
## </param>
Chris PeBenito fa45da
#
Chris PeBenito fa45da
interface(`ccs_manage_config',`
Chris PeBenito fa45da
	gen_require(`
Chris PeBenito fa45da
		type cluster_conf_t;
Chris PeBenito fa45da
	')
Chris PeBenito fa45da
Chris PeBenito c0868a
	manage_dirs_pattern($1,cluster_conf_t,cluster_conf_t)
Chris PeBenito c0868a
	manage_files_pattern($1,cluster_conf_t,cluster_conf_t)
Chris PeBenito fa45da
')