|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
policy_module(awstats,1.0.0)
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
########################################
|
|
Chris PeBenito |
0cf6df |
#
|
|
Chris PeBenito |
0cf6df |
# Declarations
|
|
Chris PeBenito |
0cf6df |
#
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
type awstats_t;
|
|
Chris PeBenito |
0cf6df |
type awstats_exec_t;
|
|
Chris PeBenito |
0cf6df |
domain_type(awstats_t)
|
|
Chris PeBenito |
0cf6df |
domain_entry_file(awstats_t, awstats_exec_t)
|
|
Chris PeBenito |
0cf6df |
role system_r types awstats_t;
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
type awstats_tmp_t;
|
|
Chris PeBenito |
0cf6df |
files_tmp_file(awstats_tmp_t)
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
type awstats_var_lib_t;
|
|
Chris PeBenito |
0cf6df |
files_type(awstats_var_lib_t)
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
apache_content_template(awstats)
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
########################################
|
|
Chris PeBenito |
0cf6df |
#
|
|
Chris PeBenito |
0cf6df |
# awstats policy
|
|
Chris PeBenito |
0cf6df |
#
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
awstats_rw_pipes(awstats_t)
|
|
Chris PeBenito |
0cf6df |
awstats_cgi_exec(awstats_t)
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
manage_dirs_pattern(awstats_t, awstats_tmp_t, awstats_tmp_t)
|
|
Chris PeBenito |
0cf6df |
manage_files_pattern(awstats_t, awstats_tmp_t, awstats_tmp_t)
|
|
Chris PeBenito |
0cf6df |
files_tmp_filetrans(awstats_t, awstats_tmp_t, { dir file })
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
manage_files_pattern(awstats_t, awstats_var_lib_t, awstats_var_lib_t)
|
|
Chris PeBenito |
0cf6df |
files_var_lib_filetrans(awstats_t, awstats_var_lib_t, file)
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
# dontaudit access to /proc/meminfo
|
|
Chris PeBenito |
0cf6df |
kernel_dontaudit_read_system_state(awstats_t)
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
corecmd_exec_bin(awstats_t)
|
|
Chris PeBenito |
0cf6df |
corecmd_exec_shell(awstats_t)
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
dev_read_urand(awstats_t)
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
files_read_etc_files(awstats_t)
|
|
Chris PeBenito |
0cf6df |
# e.g. /usr/share/awstats/lang/awstats-en.txt
|
|
Chris PeBenito |
0cf6df |
files_read_usr_files(awstats_t)
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
libs_read_lib_files(awstats_t)
|
|
Chris PeBenito |
0cf6df |
libs_use_ld_so(awstats_t)
|
|
Chris PeBenito |
0cf6df |
libs_use_shared_libs(awstats_t)
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
miscfiles_read_localization(awstats_t)
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
sysnet_dns_name_resolve(awstats_t)
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
apache_read_log(awstats_t)
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
optional_policy(`
|
|
Chris PeBenito |
0cf6df |
cron_system_entry(awstats_t, awstats_exec_t)
|
|
Chris PeBenito |
0cf6df |
')
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
optional_policy(`
|
|
Chris PeBenito |
0cf6df |
# dontaudit searching nscd pid directory
|
|
Chris PeBenito |
0cf6df |
nscd_dontaudit_search_pid(awstats_t)
|
|
Chris PeBenito |
0cf6df |
')
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
########################################
|
|
Chris PeBenito |
0cf6df |
#
|
|
Chris PeBenito |
0cf6df |
# awstats cgi script policy
|
|
Chris PeBenito |
0cf6df |
#
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
allow httpd_awstats_script_t awstats_var_lib_t:dir read;
|
|
Chris PeBenito |
0cf6df |
|
|
Chris PeBenito |
0cf6df |
read_files_pattern(httpd_awstats_script_t, awstats_var_lib_t, awstats_var_lib_t)
|
|
Chris PeBenito |
0cf6df |
files_search_var_lib(httpd_awstats_script_t)
|