Blame policy/modules/services/zabbix.te
|
Chris PeBenito |
5d4f4b |
policy_module(zabbix, 1.2.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 |
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 };
|
|
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 |
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
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(zabbix_t, zabbix_var_run_t, zabbix_var_run_t)
|
|
Chris PeBenito |
0bfccd |
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 |
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 |
')
|