|
Chris PeBenito |
fee486 |
policy_module(zabbix, 1.2.1)
|
|
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 |
e87221 |
type zabbix_initrc_exec_t;
|
|
Chris PeBenito |
e87221 |
init_script_file(zabbix_initrc_exec_t)
|
|
Chris PeBenito |
e87221 |
|
|
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 };
|
|
Dominick Grift |
7d1f56 |
allow zabbix_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
97e815 |
allow zabbix_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
# log files
|
|
Dominick Grift |
7d1f56 |
allow zabbix_t zabbix_log_t:dir setattr_dir_perms;
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(zabbix_t, zabbix_log_t, zabbix_log_t)
|
|
Chris PeBenito |
0bfccd |
logging_log_filetrans(zabbix_t, zabbix_log_t, file)
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
# pid file
|
|
Jeremy Solt |
622c63 |
manage_dirs_pattern(zabbix_t, zabbix_var_run_t, zabbix_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(zabbix_t, zabbix_var_run_t, zabbix_var_run_t)
|
|
Jeremy Solt |
622c63 |
files_pid_filetrans(zabbix_t, zabbix_var_run_t, { dir file })
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
files_read_etc_files(zabbix_t)
|
|
Chris PeBenito |
97e815 |
|
|
Chris PeBenito |
97e815 |
miscfiles_read_localization(zabbix_t)
|
|
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 |
')
|