|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
policy_module(zabbix,1.0.0)
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
########################################
|
|
Chris PeBenito |
97e815 |
#
|
|
Chris PeBenito |
97e815 |
# Declarations
|
|
Chris PeBenito |
97e815 |
#
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
type zabbix_t;
|
|
Chris PeBenito |
97e815 |
type zabbix_exec_t;
|
|
Chris PeBenito |
97e815 |
init_daemon_domain(zabbix_t, zabbix_exec_t)
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
# log files
|
|
Chris PeBenito |
97e815 |
type zabbix_log_t;
|
|
Chris PeBenito |
97e815 |
logging_log_file(zabbix_log_t)
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
# pid files
|
|
Chris PeBenito |
97e815 |
type zabbix_var_run_t;
|
|
Chris PeBenito |
97e815 |
files_pid_file(zabbix_var_run_t)
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
########################################
|
|
Chris PeBenito |
97e815 |
#
|
|
Chris PeBenito |
97e815 |
# zabbix local policy
|
|
Chris PeBenito |
97e815 |
#
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
allow zabbix_t self:capability { setuid setgid };
|
|
Chris PeBenito |
97e815 |
allow zabbix_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
97e815 |
allow zabbix_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
# log files
|
|
Chris PeBenito |
97e815 |
allow zabbix_t zabbix_log_t:dir setattr;
|
|
Chris PeBenito |
97e815 |
manage_files_pattern(zabbix_t,zabbix_log_t,zabbix_log_t)
|
|
Chris PeBenito |
97e815 |
logging_log_filetrans(zabbix_t,zabbix_log_t,file)
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
# pid file
|
|
Chris PeBenito |
97e815 |
manage_files_pattern(zabbix_t,zabbix_var_run_t,zabbix_var_run_t)
|
|
Chris PeBenito |
97e815 |
files_pid_filetrans(zabbix_t,zabbix_var_run_t, file)
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
files_read_etc_files(zabbix_t)
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
libs_use_ld_so(zabbix_t)
|
|
Chris PeBenito |
97e815 |
libs_use_shared_libs(zabbix_t)
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
miscfiles_read_localization(zabbix_t)
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
97e815 |
term_dontaudit_use_unallocated_ttys(zabbix_t)
|
|
Chris PeBenito |
97e815 |
term_dontaudit_use_generic_ptys(zabbix_t)
|
|
Chris PeBenito |
97e815 |
')
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
optional_policy(`
|
|
Chris PeBenito |
97e815 |
mysql_stream_connect(zabbix_t)
|
|
Chris PeBenito |
97e815 |
')
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
optional_policy(`
|
|
Chris PeBenito |
97e815 |
postgresql_stream_connect(zabbix_t)
|
|
Chris PeBenito |
97e815 |
')
|