Chris PeBenito 17de1b
## <summary>Munin network-wide load graphing (formerly LRRD)</summary>
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Connect to munin over a unix domain
Chris PeBenito 17de1b
##	stream socket.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`munin_stream_connect',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type munin_var_run_t, munin_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 munin_t:unix_stream_socket connectto;
Chris PeBenito 17de1b
	allow $1 munin_var_run_t:sock_file { getattr write };
Chris PeBenito 17de1b
	files_search_pids($1)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Read munin configuration files.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito bbcd3c
## <rolecap/>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`munin_read_config',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type munin_etc_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 munin_etc_t:dir list_dir_perms;
Chris PeBenito 17de1b
	allow $1 munin_etc_t:file read_file_perms;
Chris PeBenito 17de1b
	allow $1 munin_etc_t:lnk_file { getattr read };
Chris PeBenito 17de1b
	files_search_etc($1)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Search munin library directories.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`munin_search_lib',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type munin_var_lib_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 munin_var_lib_t:dir search_dir_perms;
Chris PeBenito 17de1b
	files_search_var_lib($1)
Chris PeBenito 17de1b
')
Chris PeBenito 6c9118
Chris PeBenito 6c9118
#######################################
Chris PeBenito 6c9118
## <summary>
Chris PeBenito 6c9118
##	Do not audit attempts to search
Chris PeBenito 6c9118
##	munin library directories.
Chris PeBenito 6c9118
## </summary>
Chris PeBenito 6c9118
## <param name="domain">
Chris PeBenito 6c9118
##	<summary>
Chris PeBenito 6c9118
##	Domain allowed access.
Chris PeBenito 6c9118
##	</summary>
Chris PeBenito 6c9118
## </param>
Chris PeBenito 6c9118
#
Chris PeBenito 6c9118
interface(`munin_dontaudit_search_lib',`
Chris PeBenito 6c9118
	gen_require(`
Chris PeBenito 6c9118
		type munin_var_lib_t;
Chris PeBenito 6c9118
	')
Chris PeBenito 6c9118
Chris PeBenito 6c9118
	dontaudit $1 munin_var_lib_t:dir search_dir_perms;
Chris PeBenito 6c9118
')