## Munin network-wide load graphing (formerly LRRD)
########################################
##
## Connect to munin over a unix domain
## stream socket.
##
##
##
## Domain allowed access.
##
##
#
interface(`munin_stream_connect',`
gen_require(`
type munin_var_run_t, munin_t;
')
allow $1 munin_t:unix_stream_socket connectto;
allow $1 munin_var_run_t:sock_file { getattr write };
files_search_pids($1)
')
#######################################
##
## Read munin configuration files.
##
##
##
## Domain allowed access.
##
##
##
#
interface(`munin_read_config',`
gen_require(`
type munin_etc_t;
')
allow $1 munin_etc_t:dir list_dir_perms;
allow $1 munin_etc_t:file read_file_perms;
allow $1 munin_etc_t:lnk_file { getattr read };
files_search_etc($1)
')
#######################################
##
## Append to the munin log.
##
##
##
## Domain allowed access.
##
##
##
#
interface(`munin_append_log',`
gen_require(`
type munin_log_t;
')
allow $1 munin_log_t:file append_file_perms;
logging_search_logs($1)
')
#######################################
##
## Search munin library directories.
##
##
##
## Domain allowed access.
##
##
#
interface(`munin_search_lib',`
gen_require(`
type munin_var_lib_t;
')
allow $1 munin_var_lib_t:dir search_dir_perms;
files_search_var_lib($1)
')
#######################################
##
## Do not audit attempts to search
## munin library directories.
##
##
##
## Domain allowed access.
##
##
#
interface(`munin_dontaudit_search_lib',`
gen_require(`
type munin_var_lib_t;
')
dontaudit $1 munin_var_lib_t:dir search_dir_perms;
')