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