Chris PeBenito 17de1b
Chris PeBenito f7925f
policy_module(munin,1.4.0)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type munin_t alias lrrd_t;
Chris PeBenito 17de1b
type munin_exec_t alias lrrd_exec_t;
Chris PeBenito 17de1b
init_daemon_domain(munin_t,munin_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type munin_etc_t alias lrrd_etc_t;
Chris PeBenito 17de1b
files_config_file(munin_etc_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type munin_log_t alias lrrd_log_t;
Chris PeBenito 17de1b
logging_log_file(munin_log_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type munin_tmp_t alias lrrd_tmp_t;
Chris PeBenito 17de1b
files_tmp_file(munin_tmp_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type munin_var_lib_t alias lrrd_var_lib_t;
Chris PeBenito 17de1b
files_type(munin_var_lib_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type munin_var_run_t alias lrrd_var_run_t;
Chris PeBenito 17de1b
files_pid_file(munin_var_run_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Local policy
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow munin_t self:capability { setgid setuid };
Chris PeBenito 17de1b
dontaudit munin_t self:capability sys_tty_config;
Chris PeBenito 17de1b
allow munin_t self:process { getsched setsched signal_perms };
Chris PeBenito 17de1b
allow munin_t self:unix_stream_socket { create_stream_socket_perms connectto };
Chris PeBenito 17de1b
allow munin_t self:unix_dgram_socket { create_socket_perms sendto };
Chris PeBenito 17de1b
allow munin_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 17de1b
allow munin_t self:udp_socket create_socket_perms;
Chris PeBenito 17de1b
Chris PeBenito c0868a
allow munin_t munin_etc_t:dir list_dir_perms;
Chris PeBenito c0868a
read_files_pattern(munin_t,munin_etc_t,munin_etc_t)
Chris PeBenito c0868a
read_lnk_files_pattern(munin_t,munin_etc_t,munin_etc_t)
Chris PeBenito 17de1b
files_search_etc(munin_t)
Chris PeBenito 17de1b
Chris PeBenito c0868a
allow munin_t munin_log_t:file manage_file_perms;
Chris PeBenito 17de1b
logging_log_filetrans(munin_t,munin_log_t,file)
Chris PeBenito 17de1b
Chris PeBenito c0868a
manage_dirs_pattern(munin_t,munin_tmp_t,munin_tmp_t)
Chris PeBenito c0868a
manage_files_pattern(munin_t,munin_tmp_t,munin_tmp_t)
Chris PeBenito 17de1b
files_tmp_filetrans(munin_t, munin_tmp_t, { file dir })
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# Allow access to the munin databases
Chris PeBenito c0868a
manage_dirs_pattern(munin_t,munin_var_lib_t,munin_var_lib_t)
Chris PeBenito c0868a
manage_files_pattern(munin_t,munin_var_lib_t,munin_var_lib_t)
Chris PeBenito c0868a
manage_lnk_files_pattern(munin_t,munin_var_lib_t,munin_var_lib_t)
Chris PeBenito 17de1b
files_search_var_lib(munin_t)
Chris PeBenito 17de1b
Chris PeBenito c0868a
manage_files_pattern(munin_t,munin_var_run_t,munin_var_run_t)
Chris PeBenito c0868a
manage_sock_files_pattern(munin_t,munin_var_run_t,munin_var_run_t)
Chris PeBenito 17de1b
files_pid_filetrans(munin_t,munin_var_run_t,file)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
kernel_read_system_state(munin_t)
Chris PeBenito 17de1b
kernel_read_kernel_sysctls(munin_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
corecmd_exec_bin(munin_t)
Chris PeBenito 17de1b
Chris PeBenito 190066
corenet_all_recvfrom_unlabeled(munin_t)
Chris PeBenito 190066
corenet_all_recvfrom_netlabel(munin_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_generic_if(munin_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_generic_if(munin_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_nodes(munin_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_nodes(munin_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_ports(munin_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_ports(munin_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_sysfs(munin_t)
Chris PeBenito 17de1b
dev_read_urand(munin_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
domain_use_interactive_fds(munin_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_read_etc_files(munin_t)
Chris PeBenito 17de1b
files_read_etc_runtime_files(munin_t)
Chris PeBenito 17de1b
files_read_usr_files(munin_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_getattr_all_fs(munin_t)
Chris PeBenito 17de1b
fs_search_auto_mountpoints(munin_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
libs_use_ld_so(munin_t)
Chris PeBenito 17de1b
libs_use_shared_libs(munin_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
logging_send_syslog_msg(munin_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(munin_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
sysnet_read_config(munin_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
userdom_dontaudit_use_unpriv_user_fds(munin_t)
Chris PeBenito 17de1b
userdom_dontaudit_search_sysadm_home_dirs(munin_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	# for accessing the output directory
Chris PeBenito 17de1b
	apache_search_sys_content(munin_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	cron_system_entry(munin_t,munin_exec_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	nis_use_ypbind(munin_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	seutil_sigchld_newrole(munin_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	udev_read_db(munin_t)
Chris PeBenito 17de1b
')