Jeremy Solt 21d23c
## <summary>rgmanager - Resource Group Manager</summary>
Jeremy Solt 538cf9
Jeremy Solt 538cf9
#######################################
Jeremy Solt 538cf9
## <summary>
Jeremy Solt 538cf9
##	Execute a domain transition to run rgmanager.
Jeremy Solt 538cf9
## </summary>
Jeremy Solt 538cf9
## <param name="domain">
Jeremy Solt 538cf9
## <summary>
Jeremy Solt 538cf9
##	Domain allowed access.
Jeremy Solt 538cf9
## </summary>
Jeremy Solt 538cf9
## </param>
Jeremy Solt 538cf9
#
Jeremy Solt 538cf9
interface(`rgmanager_domtrans',`
Jeremy Solt 538cf9
	gen_require(`
Jeremy Solt 538cf9
		type rgmanager_t, rgmanager_exec_t;
Jeremy Solt 538cf9
	')
Jeremy Solt 538cf9
Jeremy Solt 538cf9
	corecmd_search_bin($1)
Jeremy Solt 538cf9
	domtrans_pattern($1, rgmanager_exec_t, rgmanager_t)
Jeremy Solt 538cf9
')
Jeremy Solt 538cf9
Jeremy Solt 538cf9
########################################
Jeremy Solt 538cf9
## <summary>
Jeremy Solt 538cf9
##	Connect to rgmanager over an unix stream socket.
Jeremy Solt 538cf9
## </summary>
Jeremy Solt 538cf9
## <param name="domain">
Jeremy Solt 538cf9
##	<summary>
Jeremy Solt 538cf9
##	Domain allowed access.
Jeremy Solt 538cf9
##	</summary>
Jeremy Solt 538cf9
## </param>
Jeremy Solt 538cf9
#
Jeremy Solt 538cf9
interface(`rgmanager_stream_connect',`
Jeremy Solt 538cf9
	gen_require(`
Jeremy Solt 538cf9
		type rgmanager_t, rgmanager_var_run_t;
Jeremy Solt 538cf9
	')
Jeremy Solt 538cf9
Jeremy Solt 538cf9
	files_search_pids($1)
Jeremy Solt 538cf9
	stream_connect_pattern($1, rgmanager_var_run_t, rgmanager_var_run_t, rgmanager_t)
Jeremy Solt 538cf9
')
Jeremy Solt 538cf9
Jeremy Solt 538cf9
######################################
Jeremy Solt 538cf9
## <summary>
Jeremy Solt 538cf9
##	Allow manage rgmanager tmp files.
Jeremy Solt 538cf9
## </summary>
Jeremy Solt 538cf9
## <param name="domain">
Jeremy Solt 538cf9
##	<summary>
Jeremy Solt 538cf9
##	Domain allowed access.
Jeremy Solt 538cf9
##	</summary>
Jeremy Solt 538cf9
## </param>
Jeremy Solt 538cf9
#
Jeremy Solt 538cf9
interface(`rgmanager_manage_tmp_files',`
Jeremy Solt 538cf9
	gen_require(`
Jeremy Solt 538cf9
		type rgmanager_tmp_t;
Jeremy Solt 538cf9
	')
Jeremy Solt 538cf9
Jeremy Solt 538cf9
	files_search_tmp($1)
Jeremy Solt 538cf9
	manage_files_pattern($1, rgmanager_tmp_t, rgmanager_tmp_t)
Jeremy Solt 538cf9
')
Jeremy Solt 538cf9
Jeremy Solt 538cf9
######################################
Jeremy Solt 538cf9
## <summary>
Jeremy Solt 538cf9
##	Allow manage rgmanager tmpfs files.
Jeremy Solt 538cf9
## </summary>
Jeremy Solt 538cf9
## <param name="domain">
Jeremy Solt 538cf9
##	<summary>
Jeremy Solt 538cf9
##	Domain allowed access.
Jeremy Solt 538cf9
##	</summary>
Jeremy Solt 538cf9
## </param>
Jeremy Solt 538cf9
#
Jeremy Solt 538cf9
interface(`rgmanager_manage_tmpfs_files',`
Jeremy Solt 538cf9
	gen_require(`
Jeremy Solt 538cf9
		type rgmanager_tmpfs_t;
Jeremy Solt 538cf9
	')
Jeremy Solt 538cf9
Jeremy Solt 538cf9
	fs_search_tmpfs($1)
Jeremy Solt 538cf9
	manage_files_pattern($1, rgmanager_tmpfs_t, rgmanager_tmpfs_t)
Jeremy Solt 538cf9
')