Jeremy Solt 6055ab
## <summary>clogd - Clustered Mirror Log Server</summary>
Jeremy Solt 6055ab
Jeremy Solt 6055ab
######################################
Jeremy Solt 6055ab
## <summary>
Jeremy Solt 6055ab
##	Execute a domain transition to run clogd.
Jeremy Solt 6055ab
## </summary>
Jeremy Solt 6055ab
## <param name="domain">
Jeremy Solt 6055ab
## <summary>
Jeremy Solt 6055ab
##	Domain allowed to transition.
Jeremy Solt 6055ab
## </summary>
Jeremy Solt 6055ab
## </param>
Jeremy Solt 6055ab
#
Jeremy Solt 6055ab
interface(`clogd_domtrans',`
Jeremy Solt 6055ab
	gen_require(`
Jeremy Solt 6055ab
		type clogd_t, clogd_exec_t;
Jeremy Solt 6055ab
	')
Jeremy Solt 6055ab
Jeremy Solt 6055ab
	corecmd_search_bin($1)
Jeremy Solt 6055ab
	domtrans_pattern($1, clogd_exec_t, clogd_t)
Jeremy Solt 6055ab
')
Jeremy Solt 6055ab
Jeremy Solt 6055ab
#####################################
Jeremy Solt 6055ab
## <summary>
Jeremy Solt 6055ab
##	Connect to clogd over a unix domain
Jeremy Solt 6055ab
##	stream socket.
Jeremy Solt 6055ab
## </summary>
Jeremy Solt 6055ab
## <param name="domain">
Jeremy Solt 6055ab
##	<summary>
Jeremy Solt 6055ab
##	Domain allowed access.
Jeremy Solt 6055ab
##	</summary>
Jeremy Solt 6055ab
## </param>
Jeremy Solt 6055ab
#
Jeremy Solt 6055ab
interface(`clogd_stream_connect',`
Jeremy Solt 6055ab
	gen_require(`
Jeremy Solt 6055ab
		type clogd_t, clogd_var_run_t;
Jeremy Solt 6055ab
	')
Jeremy Solt 6055ab
Jeremy Solt 6055ab
	files_search_pids($1)
Jeremy Solt 6055ab
	stream_connect_pattern($1, clogd_var_run_t, clogd_var_run_t, clogd_t)
Jeremy Solt 6055ab
')
Jeremy Solt 6055ab
Jeremy Solt 6055ab
#####################################
Jeremy Solt 6055ab
## <summary>
Jeremy Solt 6055ab
##	Allow read and write access to clogd semaphores.
Jeremy Solt 6055ab
## </summary>
Jeremy Solt 6055ab
## <param name="domain">
Jeremy Solt 6055ab
##	<summary>
Jeremy Solt 6055ab
##	Domain allowed access.
Jeremy Solt 6055ab
##	</summary>
Jeremy Solt 6055ab
## </param>
Jeremy Solt 6055ab
#
Jeremy Solt 6055ab
interface(`clogd_rw_semaphores',`
Jeremy Solt 6055ab
	gen_require(`
Jeremy Solt 6055ab
		type clogd_t;
Jeremy Solt 6055ab
	')
Jeremy Solt 6055ab
Jeremy Solt 6055ab
	allow $1 clogd_t:sem rw_sem_perms;
Jeremy Solt 6055ab
')
Jeremy Solt 6055ab
Jeremy Solt 6055ab
########################################
Jeremy Solt 6055ab
## <summary>
Jeremy Solt 6055ab
##	Read and write to group shared memory.
Jeremy Solt 6055ab
## </summary>
Jeremy Solt 6055ab
## <param name="domain">
Jeremy Solt 6055ab
##	<summary>
Jeremy Solt 6055ab
##	Domain allowed access.
Jeremy Solt 6055ab
##	</summary>
Jeremy Solt 6055ab
## </param>
Jeremy Solt 6055ab
#
Jeremy Solt 6055ab
interface(`clogd_rw_shm',`
Jeremy Solt 6055ab
	gen_require(`
Jeremy Solt 6055ab
		type clogd_t, clogd_tmpfs_t;
Jeremy Solt 6055ab
	')
Jeremy Solt 6055ab
Jeremy Solt 6055ab
	allow $1 clogd_t:shm rw_shm_perms;
Jeremy Solt 6055ab
	allow $1 clogd_tmpfs_t:dir list_dir_perms;
Jeremy Solt 6055ab
	rw_files_pattern($1, clogd_tmpfs_t, clogd_tmpfs_t)
Jeremy Solt 6055ab
	fs_search_tmpfs($1)
Jeremy Solt 6055ab
')