Blame refpolicy/policy/modules/services/munin.if
|
Chris PeBenito |
b6d37e |
## <summary>Munin network-wide load graphing (formerly LRRD)</summary>
|
|
Chris PeBenito |
b6d37e |
|
|
Chris PeBenito |
b6d37e |
########################################
|
|
Chris PeBenito |
b6d37e |
## <summary>
|
|
Chris PeBenito |
b6d37e |
## Connect to munin over a unix domain
|
|
Chris PeBenito |
b6d37e |
## stream socket.
|
|
Chris PeBenito |
b6d37e |
## </summary>
|
|
Chris PeBenito |
b6d37e |
## <param name="domain">
|
|
Chris PeBenito |
b6d37e |
## <summary>
|
|
Chris PeBenito |
b6d37e |
## Domain allowed access.
|
|
Chris PeBenito |
b6d37e |
## </summary>
|
|
Chris PeBenito |
b6d37e |
## </param>
|
|
Chris PeBenito |
b6d37e |
#
|
|
Chris PeBenito |
b6d37e |
interface(`munin_stream_connect',`
|
|
Chris PeBenito |
b6d37e |
gen_require(`
|
|
Chris PeBenito |
b6d37e |
type munin_var_run_t, munin_t;
|
|
Chris PeBenito |
b6d37e |
')
|
|
Chris PeBenito |
b6d37e |
|
|
Chris PeBenito |
b6d37e |
allow $1 munin_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
b6d37e |
allow $1 munin_var_run_t:sock_file { getattr write };
|
|
Chris PeBenito |
b6d37e |
files_search_pids($1)
|
|
Chris PeBenito |
b6d37e |
')
|
|
Chris PeBenito |
b6d37e |
|
|
Chris PeBenito |
b6d37e |
#######################################
|
|
Chris PeBenito |
b6d37e |
## <summary>
|
|
Chris PeBenito |
b6d37e |
## Read munin configuration files.
|
|
Chris PeBenito |
b6d37e |
## </summary>
|
|
Chris PeBenito |
b6d37e |
## <param name="domain">
|
|
Chris PeBenito |
b6d37e |
## <summary>
|
|
Chris PeBenito |
b6d37e |
## Domain allowed access.
|
|
Chris PeBenito |
b6d37e |
## </summary>
|
|
Chris PeBenito |
b6d37e |
## </param>
|
|
Chris PeBenito |
b6d37e |
#
|
|
Chris PeBenito |
b6d37e |
interface(`munin_read_config',`
|
|
Chris PeBenito |
b6d37e |
gen_require(`
|
|
Chris PeBenito |
b6d37e |
type munin_etc_t;
|
|
Chris PeBenito |
b6d37e |
')
|
|
Chris PeBenito |
b6d37e |
|
|
Chris PeBenito |
b6d37e |
allow $1 munin_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
b6d37e |
allow $1 munin_etc_t:file read_file_perms;
|
|
Chris PeBenito |
b6d37e |
allow $1 munin_etc_t:lnk_file { getattr read };
|
|
Chris PeBenito |
b6d37e |
files_search_etc($1)
|
|
Chris PeBenito |
b6d37e |
')
|
|
Chris PeBenito |
b6d37e |
|
|
Chris PeBenito |
b6d37e |
#######################################
|
|
Chris PeBenito |
b6d37e |
## <summary>
|
|
Chris PeBenito |
b6d37e |
## Search munin library directories.
|
|
Chris PeBenito |
b6d37e |
## </summary>
|
|
Chris PeBenito |
b6d37e |
## <param name="domain">
|
|
Chris PeBenito |
b6d37e |
## <summary>
|
|
Chris PeBenito |
b6d37e |
## Domain allowed access.
|
|
Chris PeBenito |
b6d37e |
## </summary>
|
|
Chris PeBenito |
b6d37e |
## </param>
|
|
Chris PeBenito |
b6d37e |
#
|
|
Chris PeBenito |
b6d37e |
interface(`munin_search_lib',`
|
|
Chris PeBenito |
b6d37e |
gen_require(`
|
|
Chris PeBenito |
b6d37e |
type munin_var_lib_t;
|
|
Chris PeBenito |
b6d37e |
')
|
|
Chris PeBenito |
b6d37e |
|
|
Chris PeBenito |
b6d37e |
allow $1 munin_var_lib_t:dir search_dir_perms;
|
|
Chris PeBenito |
b6d37e |
files_search_var_lib($1)
|
|
Chris PeBenito |
b6d37e |
')
|