|
Chris PeBenito |
ad0071 |
policy_module(smokeping, 1.0.0)
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
########################################
|
|
Jeremy Solt |
f3c346 |
#
|
|
Jeremy Solt |
f3c346 |
# Declarations
|
|
Jeremy Solt |
f3c346 |
#
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
type smokeping_t;
|
|
Jeremy Solt |
f3c346 |
type smokeping_exec_t;
|
|
Jeremy Solt |
f3c346 |
init_daemon_domain(smokeping_t, smokeping_exec_t)
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
type smokeping_initrc_exec_t;
|
|
Jeremy Solt |
f3c346 |
init_script_file(smokeping_initrc_exec_t)
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
type smokeping_var_run_t;
|
|
Jeremy Solt |
f3c346 |
files_pid_file(smokeping_var_run_t)
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
type smokeping_var_lib_t;
|
|
Jeremy Solt |
f3c346 |
files_type(smokeping_var_lib_t)
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
########################################
|
|
Jeremy Solt |
f3c346 |
#
|
|
Jeremy Solt |
f3c346 |
# smokeping local policy
|
|
Jeremy Solt |
f3c346 |
#
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
allow smokeping_t self:fifo_file rw_fifo_file_perms;
|
|
Jeremy Solt |
f3c346 |
allow smokeping_t self:udp_socket create_socket_perms;
|
|
Jeremy Solt |
f3c346 |
allow smokeping_t self:unix_stream_socket create_stream_socket_perms;
|
|
Jeremy Solt |
f3c346 |
|
|
Chris PeBenito |
ad0071 |
manage_dirs_pattern(smokeping_t, smokeping_var_run_t, smokeping_var_run_t)
|
|
Chris PeBenito |
ad0071 |
manage_files_pattern(smokeping_t, smokeping_var_run_t, smokeping_var_run_t)
|
|
Jeremy Solt |
f3c346 |
files_pid_filetrans(smokeping_t, smokeping_var_run_t, { file dir })
|
|
Jeremy Solt |
f3c346 |
|
|
Chris PeBenito |
ad0071 |
manage_dirs_pattern(smokeping_t, smokeping_var_lib_t, smokeping_var_lib_t)
|
|
Chris PeBenito |
ad0071 |
manage_files_pattern(smokeping_t, smokeping_var_lib_t, smokeping_var_lib_t)
|
|
Jeremy Solt |
f3c346 |
files_var_lib_filetrans(smokeping_t, smokeping_var_lib_t, { file dir } )
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
corecmd_read_bin_symlinks(smokeping_t)
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
dev_read_urand(smokeping_t)
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
files_read_etc_files(smokeping_t)
|
|
Jeremy Solt |
f3c346 |
files_read_usr_files(smokeping_t)
|
|
Jeremy Solt |
f3c346 |
files_search_tmp(smokeping_t)
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
auth_use_nsswitch(smokeping_t)
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
logging_send_syslog_msg(smokeping_t)
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
miscfiles_read_localization(smokeping_t)
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
mta_send_mail(smokeping_t)
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
netutils_domtrans_ping(smokeping_t)
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
#######################################
|
|
Jeremy Solt |
f3c346 |
#
|
|
Jeremy Solt |
f3c346 |
# local policy for smokeping cgi scripts
|
|
Jeremy Solt |
f3c346 |
#
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
optional_policy(`
|
|
Jeremy Solt |
f3c346 |
apache_content_template(smokeping_cgi)
|
|
Chris PeBenito |
ad0071 |
|
|
Jeremy Solt |
f3c346 |
allow httpd_smokeping_cgi_script_t self:udp_socket create_socket_perms;
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
manage_files_pattern(httpd_smokeping_cgi_script_t, smokeping_var_lib_t, smokeping_var_lib_t)
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
getattr_files_pattern(httpd_smokeping_cgi_script_t, smokeping_var_run_t, smokeping_var_run_t)
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
files_search_tmp(httpd_smokeping_cgi_script_t)
|
|
Jeremy Solt |
f3c346 |
files_search_var_lib(httpd_smokeping_cgi_script_t)
|
|
Jeremy Solt |
f3c346 |
|
|
Jeremy Solt |
f3c346 |
sysnet_dns_name_resolve(httpd_smokeping_cgi_script_t)
|
|
Jeremy Solt |
f3c346 |
')
|