|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
29af4c |
policy_module(nagios, 1.9.0)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type nagios_t;
|
|
Chris PeBenito |
17de1b |
type nagios_exec_t;
|
|
Chris PeBenito |
8242f5 |
init_daemon_domain(nagios_t, nagios_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type nagios_etc_t;
|
|
Chris PeBenito |
17de1b |
files_config_file(nagios_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
99bbe3 |
type nagios_initrc_exec_t;
|
|
Jeremy Solt |
99bbe3 |
init_script_file(nagios_initrc_exec_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Chris PeBenito |
17de1b |
type nagios_log_t;
|
|
Chris PeBenito |
17de1b |
logging_log_file(nagios_log_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type nagios_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(nagios_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type nagios_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(nagios_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
99bbe3 |
type nagios_spool_t;
|
|
Jeremy Solt |
99bbe3 |
files_type(nagios_spool_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
nagios_plugin_template(admin)
|
|
Jeremy Solt |
99bbe3 |
nagios_plugin_template(checkdisk)
|
|
Jeremy Solt |
99bbe3 |
nagios_plugin_template(mail)
|
|
Jeremy Solt |
99bbe3 |
nagios_plugin_template(services)
|
|
Jeremy Solt |
99bbe3 |
nagios_plugin_template(system)
|
|
Chris PeBenito |
7934ac |
nagios_plugin_template(unconfined)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
type nagios_system_plugin_tmp_t;
|
|
Jeremy Solt |
99bbe3 |
files_tmp_file(nagios_system_plugin_tmp_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Chris PeBenito |
17de1b |
type nrpe_t;
|
|
Chris PeBenito |
17de1b |
type nrpe_exec_t;
|
|
Chris PeBenito |
8242f5 |
init_daemon_domain(nrpe_t, nrpe_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type nrpe_etc_t;
|
|
Chris PeBenito |
17de1b |
files_config_file(nrpe_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
99bbe3 |
type nrpe_var_run_t;
|
|
Jeremy Solt |
99bbe3 |
files_pid_file(nrpe_var_run_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Nagios local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow nagios_t self:capability { dac_override setgid setuid };
|
|
Chris PeBenito |
17de1b |
dontaudit nagios_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow nagios_t self:process { setpgid signal_perms };
|
|
Chris PeBenito |
17de1b |
allow nagios_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
allow nagios_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow nagios_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8242f5 |
read_files_pattern(nagios_t, nagios_etc_t, nagios_etc_t)
|
|
Chris PeBenito |
8242f5 |
read_lnk_files_pattern(nagios_t, nagios_etc_t, nagios_etc_t)
|
|
Chris PeBenito |
c0868a |
allow nagios_t nagios_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8242f5 |
manage_files_pattern(nagios_t, nagios_log_t, nagios_log_t)
|
|
Chris PeBenito |
8242f5 |
manage_fifo_files_pattern(nagios_t, nagios_log_t, nagios_log_t)
|
|
Chris PeBenito |
8242f5 |
logging_log_filetrans(nagios_t, nagios_log_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8242f5 |
manage_dirs_pattern(nagios_t, nagios_tmp_t, nagios_tmp_t)
|
|
Chris PeBenito |
8242f5 |
manage_files_pattern(nagios_t, nagios_tmp_t, nagios_tmp_t)
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(nagios_t, nagios_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8242f5 |
manage_files_pattern(nagios_t, nagios_var_run_t, nagios_var_run_t)
|
|
Chris PeBenito |
8242f5 |
files_pid_filetrans(nagios_t, nagios_var_run_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
99bbe3 |
manage_fifo_files_pattern(nagios_t, nagios_spool_t, nagios_spool_t)
|
|
Jeremy Solt |
99bbe3 |
files_spool_filetrans(nagios_t, nagios_spool_t, fifo_file)
|
|
Jeremy Solt |
99bbe3 |
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(nagios_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(nagios_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_bin(nagios_t)
|
|
Chris PeBenito |
17de1b |
corecmd_exec_shell(nagios_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(nagios_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(nagios_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_generic_if(nagios_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_generic_if(nagios_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(nagios_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(nagios_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(nagios_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(nagios_t)
|
|
Chris PeBenito |
02f2c3 |
corenet_tcp_connect_all_ports(nagios_t)
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
99bbe3 |
corenet_dontaudit_tcp_bind_all_reserved_ports(nagios_t)
|
|
Jeremy Solt |
99bbe3 |
corenet_dontaudit_udp_bind_all_reserved_ports(nagios_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(nagios_t)
|
|
Chris PeBenito |
02f2c3 |
dev_read_urand(nagios_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(nagios_t)
|
|
Chris PeBenito |
17de1b |
# for ps
|
|
Chris PeBenito |
17de1b |
domain_read_all_domains_state(nagios_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(nagios_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(nagios_t)
|
|
Chris PeBenito |
17de1b |
files_read_kernel_symbol_table(nagios_t)
|
|
Jeremy Solt |
99bbe3 |
files_search_spool(nagios_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(nagios_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(nagios_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# for who
|
|
Chris PeBenito |
17de1b |
init_read_utmp(nagios_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0cf6e |
auth_use_nsswitch(nagios_t)
|
|
Chris PeBenito |
c0cf6e |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(nagios_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(nagios_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(nagios_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(nagios_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mta_send_mail(nagios_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
02f2c3 |
netutils_domtrans_ping(nagios_t)
|
|
Chris PeBenito |
02f2c3 |
netutils_signal_ping(nagios_t)
|
|
Chris PeBenito |
02f2c3 |
netutils_kill_ping(nagios_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(nagios_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(nagios_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Nagios CGI local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
7934ac |
optional_policy(`
|
|
Chris PeBenito |
7934ac |
apache_content_template(nagios)
|
|
Chris PeBenito |
7934ac |
typealias httpd_nagios_script_t alias nagios_cgi_t;
|
|
Chris PeBenito |
7934ac |
typealias httpd_nagios_script_exec_t alias nagios_cgi_exec_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
7934ac |
allow httpd_nagios_script_t self:process signal_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
7934ac |
read_files_pattern(httpd_nagios_script_t, nagios_t, nagios_t)
|
|
Chris PeBenito |
7934ac |
read_lnk_files_pattern(httpd_nagios_script_t, nagios_t, nagios_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
7934ac |
files_search_spool(httpd_nagios_script_t)
|
|
Chris PeBenito |
7934ac |
rw_fifo_files_pattern(httpd_nagios_script_t, nagios_spool_t, nagios_spool_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
7934ac |
allow httpd_nagios_script_t nagios_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
7934ac |
read_files_pattern(httpd_nagios_script_t, nagios_etc_t, nagios_etc_t)
|
|
Chris PeBenito |
7934ac |
read_lnk_files_pattern(httpd_nagios_script_t, nagios_etc_t, nagios_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
7934ac |
allow httpd_nagios_script_t nagios_log_t:dir list_dir_perms;
|
|
Chris PeBenito |
7934ac |
read_files_pattern(httpd_nagios_script_t, nagios_etc_t, nagios_log_t)
|
|
Chris PeBenito |
7934ac |
read_lnk_files_pattern(httpd_nagios_script_t, nagios_etc_t, nagios_log_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
7934ac |
kernel_read_system_state(httpd_nagios_script_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
7934ac |
domain_dontaudit_read_all_domains_state(httpd_nagios_script_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
7934ac |
files_read_etc_runtime_files(httpd_nagios_script_t)
|
|
Chris PeBenito |
7934ac |
files_read_kernel_symbol_table(httpd_nagios_script_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
7934ac |
logging_send_syslog_msg(httpd_nagios_script_t)
|
|
Chris PeBenito |
7934ac |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Nagios remote plugin executor local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
99bbe3 |
allow nrpe_t self:capability { setuid setgid };
|
|
Jeremy Solt |
99bbe3 |
dontaudit nrpe_t self:capability {sys_tty_config sys_resource};
|
|
Jeremy Solt |
99bbe3 |
allow nrpe_t self:process { setpgid signal_perms setsched setrlimit };
|
|
Chris PeBenito |
c0868a |
allow nrpe_t self:fifo_file rw_fifo_file_perms;
|
|
Jeremy Solt |
99bbe3 |
allow nrpe_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
99bbe3 |
domtrans_pattern(nrpe_t, nagios_checkdisk_plugin_exec_t, nagios_checkdisk_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
read_files_pattern(nrpe_t, nagios_etc_t, nagios_etc_t)
|
|
Chris PeBenito |
17de1b |
files_search_etc(nrpe_t)
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
99bbe3 |
manage_files_pattern(nrpe_t, nrpe_var_run_t, nrpe_var_run_t)
|
|
Jeremy Solt |
99bbe3 |
files_pid_filetrans(nrpe_t, nrpe_var_run_t, file)
|
|
Jeremy Solt |
99bbe3 |
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(nrpe_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(nrpe_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_bin(nrpe_t)
|
|
Chris PeBenito |
17de1b |
corecmd_exec_shell(nrpe_t)
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
99bbe3 |
corenet_tcp_bind_generic_node(nrpe_t)
|
|
Jeremy Solt |
99bbe3 |
corenet_tcp_bind_inetd_child_port(nrpe_t)
|
|
Jeremy Solt |
99bbe3 |
corenet_sendrecv_unlabeled_packets(nrpe_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(nrpe_t)
|
|
Chris PeBenito |
17de1b |
dev_read_urand(nrpe_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(nrpe_t)
|
|
Jeremy Solt |
99bbe3 |
domain_read_all_domains_state(nrpe_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(nrpe_t)
|
|
Chris PeBenito |
7934ac |
files_read_etc_files(nrpe_t)
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
99bbe3 |
fs_getattr_all_fs(nrpe_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(nrpe_t)
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
99bbe3 |
auth_use_nsswitch(nrpe_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(nrpe_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(nrpe_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(nrpe_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
8242f5 |
inetd_tcp_service_domain(nrpe_t, nrpe_exec_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Jeremy Solt |
99bbe3 |
mta_send_mail(nrpe_t)
|
|
Jeremy Solt |
99bbe3 |
')
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
optional_policy(`
|
|
Chris PeBenito |
6073ea |
seutil_sigchld_newrole(nrpe_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
8242f5 |
tcpd_wrapped_domain(nrpe_t, nrpe_exec_t)
|
|
Chris PeBenito |
8242f5 |
')
|
|
Chris PeBenito |
8242f5 |
|
|
Chris PeBenito |
8242f5 |
optional_policy(`
|
|
Chris PeBenito |
6073ea |
udev_read_db(nrpe_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
#####################################
|
|
Jeremy Solt |
99bbe3 |
#
|
|
Jeremy Solt |
99bbe3 |
# local policy for admin check plugins
|
|
Jeremy Solt |
99bbe3 |
#
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
corecmd_read_bin_files(nagios_admin_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
corecmd_read_bin_symlinks(nagios_admin_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
dev_read_urand(nagios_admin_plugin_t)
|
|
Chris PeBenito |
7934ac |
dev_getattr_all_chr_files(nagios_admin_plugin_t)
|
|
Chris PeBenito |
7934ac |
dev_getattr_all_blk_files(nagios_admin_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
files_read_etc_files(nagios_admin_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
# for check_file_age plugin
|
|
Jeremy Solt |
99bbe3 |
files_getattr_all_dirs(nagios_admin_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
files_getattr_all_files(nagios_admin_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
files_getattr_all_symlinks(nagios_admin_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
files_getattr_all_pipes(nagios_admin_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
files_getattr_all_sockets(nagios_admin_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
files_getattr_all_file_type_fs(nagios_admin_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
######################################
|
|
Jeremy Solt |
99bbe3 |
#
|
|
Jeremy Solt |
99bbe3 |
# local policy for mail check plugins
|
|
Jeremy Solt |
99bbe3 |
#
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
allow nagios_mail_plugin_t self:capability { setuid setgid dac_override };
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
allow nagios_mail_plugin_t self:netlink_route_socket r_netlink_socket_perms;
|
|
Jeremy Solt |
99bbe3 |
allow nagios_mail_plugin_t self:tcp_socket create_stream_socket_perms;
|
|
Jeremy Solt |
99bbe3 |
allow nagios_mail_plugin_t self:udp_socket create_socket_perms;
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
kernel_read_system_state(nagios_mail_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
kernel_read_kernel_sysctls(nagios_mail_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
corecmd_read_bin_files(nagios_mail_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
corecmd_read_bin_symlinks(nagios_mail_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
dev_read_urand(nagios_mail_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
files_read_etc_files(nagios_mail_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
logging_send_syslog_msg(nagios_mail_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
sysnet_read_config(nagios_mail_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
optional_policy(`
|
|
Jeremy Solt |
99bbe3 |
mta_send_mail(nagios_mail_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
')
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
optional_policy(`
|
|
Chris PeBenito |
7934ac |
nscd_dontaudit_search_pid(nagios_mail_plugin_t)
|
|
Chris PeBenito |
7934ac |
')
|
|
Chris PeBenito |
7934ac |
|
|
Chris PeBenito |
7934ac |
optional_policy(`
|
|
Jeremy Solt |
99bbe3 |
postfix_stream_connect_master(nagios_mail_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
posftix_exec_postqueue(nagios_mail_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
')
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
######################################
|
|
Jeremy Solt |
99bbe3 |
#
|
|
Jeremy Solt |
99bbe3 |
# local policy for disk check plugins
|
|
Jeremy Solt |
99bbe3 |
#
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
# needed by ioctl()
|
|
Jeremy Solt |
99bbe3 |
allow nagios_checkdisk_plugin_t self:capability { sys_admin sys_rawio };
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
files_read_etc_runtime_files(nagios_checkdisk_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
fs_getattr_all_fs(nagios_checkdisk_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
storage_raw_read_fixed_disk(nagios_checkdisk_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
#######################################
|
|
Jeremy Solt |
99bbe3 |
#
|
|
Jeremy Solt |
99bbe3 |
# local policy for service check plugins
|
|
Jeremy Solt |
99bbe3 |
#
|
|
Chris PeBenito |
7934ac |
|
|
Jeremy Solt |
99bbe3 |
allow nagios_services_plugin_t self:capability { net_bind_service net_raw };
|
|
Jeremy Solt |
99bbe3 |
allow nagios_services_plugin_t self:process { signal sigkill };
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
allow nagios_services_plugin_t self:tcp_socket create_stream_socket_perms;
|
|
Jeremy Solt |
99bbe3 |
allow nagios_services_plugin_t self:udp_socket create_socket_perms;
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
corecmd_exec_bin(nagios_services_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
corenet_tcp_connect_all_ports(nagios_services_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
corenet_udp_bind_dhcpc_port(nagios_services_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
auth_use_nsswitch(nagios_services_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
domain_read_all_domains_state(nagios_services_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
files_read_usr_files(nagios_services_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
optional_policy(`
|
|
Jeremy Solt |
99bbe3 |
netutils_domtrans_ping(nagios_services_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
')
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
optional_policy(`
|
|
Jeremy Solt |
99bbe3 |
mysql_stream_connect(nagios_services_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
')
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
optional_policy(`
|
|
Jeremy Solt |
99bbe3 |
snmp_read_snmp_var_lib_files(nagios_services_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
')
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
######################################
|
|
Jeremy Solt |
99bbe3 |
#
|
|
Jeremy Solt |
99bbe3 |
# local policy for system check plugins
|
|
Jeremy Solt |
99bbe3 |
#
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
allow nagios_system_plugin_t self:capability dac_override;
|
|
Jeremy Solt |
99bbe3 |
dontaudit nagios_system_plugin_t self:capability { setuid setgid };
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
# check_log
|
|
Jeremy Solt |
99bbe3 |
manage_files_pattern(nagios_system_plugin_t, nagios_system_plugin_tmp_t, nagios_system_plugin_tmp_t)
|
|
Jeremy Solt |
99bbe3 |
manage_dirs_pattern(nagios_system_plugin_t, nagios_system_plugin_tmp_t, nagios_system_plugin_tmp_t)
|
|
Jeremy Solt |
99bbe3 |
files_tmp_filetrans(nagios_system_plugin_t, nagios_system_plugin_tmp_t, { dir file })
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
kernel_read_system_state(nagios_system_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
kernel_read_kernel_sysctls(nagios_system_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Chris PeBenito |
7934ac |
corecmd_exec_bin(nagios_system_plugin_t)
|
|
Chris PeBenito |
7934ac |
corecmd_exec_shell(nagios_system_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
dev_read_sysfs(nagios_system_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
dev_read_urand(nagios_system_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Jeremy Solt |
99bbe3 |
domain_read_all_domains_state(nagios_system_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
|
|
Chris PeBenito |
7934ac |
files_read_etc_files(nagios_system_plugin_t)
|
|
Chris PeBenito |
7934ac |
|
|
Jeremy Solt |
99bbe3 |
# needed by check_users plugin
|
|
Jeremy Solt |
99bbe3 |
optional_policy(`
|
|
Jeremy Solt |
99bbe3 |
init_read_utmp(nagios_system_plugin_t)
|
|
Jeremy Solt |
99bbe3 |
')
|
|
Chris PeBenito |
7934ac |
|
|
Chris PeBenito |
7934ac |
########################################
|
|
Chris PeBenito |
7934ac |
#
|
|
Chris PeBenito |
7934ac |
# Unconfined plugin policy
|
|
Chris PeBenito |
7934ac |
#
|
|
Chris PeBenito |
7934ac |
|
|
Chris PeBenito |
7934ac |
optional_policy(`
|
|
Chris PeBenito |
7934ac |
unconfined_domain(nagios_unconfined_plugin_t)
|
|
Chris PeBenito |
7934ac |
')
|