|
Dominick Grift |
6c38e5d |
policy_module(smokeping, 1.1.2)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
# Declarations
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type smokeping_t;
|
|
|
1ec3d1a |
type smokeping_exec_t;
|
|
|
1ec3d1a |
init_daemon_domain(smokeping_t, smokeping_exec_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type smokeping_initrc_exec_t;
|
|
|
1ec3d1a |
init_script_file(smokeping_initrc_exec_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type smokeping_var_run_t;
|
|
|
1ec3d1a |
files_pid_file(smokeping_var_run_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type smokeping_var_lib_t;
|
|
|
1ec3d1a |
files_type(smokeping_var_lib_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
#
|
|
Dominick Grift |
6c38e5d |
# Local policy
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
|
|
Chris PeBenito |
9401ae1 |
dontaudit smokeping_t self:capability { dac_read_search dac_override };
|
|
|
1ec3d1a |
allow smokeping_t self:fifo_file rw_fifo_file_perms;
|
|
Dominick Grift |
6c38e5d |
allow smokeping_t self:unix_stream_socket { accept listen };
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
manage_dirs_pattern(smokeping_t, smokeping_var_run_t, smokeping_var_run_t)
|
|
|
1ec3d1a |
manage_files_pattern(smokeping_t, smokeping_var_run_t, smokeping_var_run_t)
|
|
|
1ec3d1a |
files_pid_filetrans(smokeping_t, smokeping_var_run_t, { file dir })
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
manage_dirs_pattern(smokeping_t, smokeping_var_lib_t, smokeping_var_lib_t)
|
|
|
1ec3d1a |
manage_files_pattern(smokeping_t, smokeping_var_lib_t, smokeping_var_lib_t)
|
|
Dominick Grift |
6c38e5d |
files_var_lib_filetrans(smokeping_t, smokeping_var_lib_t, { file dir })
|
|
|
1ec3d1a |
|
|
|
a8a80ee |
corecmd_exec_bin(smokeping_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
dev_read_urand(smokeping_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
files_search_tmp(smokeping_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
auth_use_nsswitch(smokeping_t)
|
|
|
1ec3d1a |
auth_dontaudit_read_shadow(smokeping_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
logging_send_syslog_msg(smokeping_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
mta_send_mail(smokeping_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
netutils_domtrans_ping(smokeping_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
#######################################
|
|
|
1ec3d1a |
#
|
|
Dominick Grift |
6c38e5d |
# Cgi local policy
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
optional_policy(`
|
|
|
1ec3d1a |
apache_content_template(smokeping_cgi)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
manage_dirs_pattern(httpd_smokeping_cgi_script_t, smokeping_var_lib_t, smokeping_var_lib_t)
|
|
|
1ec3d1a |
manage_files_pattern(httpd_smokeping_cgi_script_t, smokeping_var_lib_t, smokeping_var_lib_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
getattr_files_pattern(httpd_smokeping_cgi_script_t, smokeping_var_run_t, smokeping_var_run_t)
|
|
|
1ec3d1a |
|
|
Dominick Grift |
6c38e5d |
files_read_etc_files(httpd_smokeping_cgi_script_t)
|
|
|
1ec3d1a |
files_search_tmp(httpd_smokeping_cgi_script_t)
|
|
|
1ec3d1a |
files_search_var_lib(httpd_smokeping_cgi_script_t)
|
|
|
1ec3d1a |
|
|
|
e08f7dc |
auth_read_passwd(httpd_smokeping_cgi_script_t)
|
|
|
e08f7dc |
|
|
|
1ec3d1a |
sysnet_dns_name_resolve(httpd_smokeping_cgi_script_t)
|
|
|
9d560a3 |
|
|
|
9d560a3 |
netutils_domtrans_ping(httpd_smokeping_cgi_script_t)
|
|
|
1ec3d1a |
')
|