|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
d3d270 |
policy_module(webalizer,1.2.0)
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
f33561 |
########################################
|
|
Chris PeBenito |
f33561 |
#
|
|
Chris PeBenito |
f33561 |
# Declarations
|
|
Chris PeBenito |
f33561 |
#
|
|
Chris PeBenito |
f33561 |
type webalizer_t;
|
|
Chris PeBenito |
f33561 |
type webalizer_exec_t;
|
|
Chris PeBenito |
f33561 |
domain_type(webalizer_t)
|
|
Chris PeBenito |
f33561 |
domain_entry_file(webalizer_t,webalizer_exec_t)
|
|
Chris PeBenito |
f33561 |
role system_r types webalizer_t;
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
9bbc75 |
type webalizer_etc_t;
|
|
Chris PeBenito |
9bbc75 |
files_config_file(webalizer_etc_t)
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
f33561 |
type webalizer_usage_t;
|
|
Chris PeBenito |
f33561 |
files_type(webalizer_usage_t)
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
f33561 |
type webalizer_tmp_t;
|
|
Chris PeBenito |
f33561 |
files_tmp_file(webalizer_tmp_t)
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
f33561 |
type webalizer_var_lib_t;
|
|
Chris PeBenito |
f33561 |
files_type(webalizer_var_lib_t)
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
f33561 |
type webalizer_write_t;
|
|
Chris PeBenito |
f33561 |
files_type(webalizer_write_t)
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
f33561 |
########################################
|
|
Chris PeBenito |
f33561 |
#
|
|
Chris PeBenito |
f33561 |
# Local policy
|
|
Chris PeBenito |
f33561 |
#
|
|
Chris PeBenito |
f33561 |
allow webalizer_t self:capability dac_override;
|
|
Chris PeBenito |
f33561 |
allow webalizer_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
|
|
Chris PeBenito |
f33561 |
allow webalizer_t self:fd use;
|
|
Chris PeBenito |
f33561 |
allow webalizer_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
a525f2 |
allow webalizer_t self:sock_file r_file_perms;
|
|
Chris PeBenito |
f33561 |
allow webalizer_t self:shm create_shm_perms;
|
|
Chris PeBenito |
f33561 |
allow webalizer_t self:sem create_sem_perms;
|
|
Chris PeBenito |
f33561 |
allow webalizer_t self:msgq create_msgq_perms;
|
|
Chris PeBenito |
f33561 |
allow webalizer_t self:msg { send receive };
|
|
Chris PeBenito |
f33561 |
allow webalizer_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
f33561 |
allow webalizer_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
f33561 |
allow webalizer_t self:unix_dgram_socket sendto;
|
|
Chris PeBenito |
f33561 |
allow webalizer_t self:unix_stream_socket connectto;
|
|
Chris PeBenito |
f33561 |
allow webalizer_t self:tcp_socket connected_stream_socket_perms;
|
|
Chris PeBenito |
f33561 |
allow webalizer_t self:udp_socket { connect connected_socket_perms };
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
f33561 |
allow webalizer_t webalizer_etc_t:file { getattr read };
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
f33561 |
allow webalizer_t webalizer_tmp_t:dir create_dir_perms;
|
|
Chris PeBenito |
f33561 |
allow webalizer_t webalizer_tmp_t:file create_file_perms;
|
|
Chris PeBenito |
103fe2 |
files_tmp_filetrans(webalizer_t, webalizer_tmp_t, { file dir })
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
f33561 |
allow webalizer_t webalizer_var_lib_t:file create_file_perms;
|
|
Chris PeBenito |
f33561 |
allow webalizer_t webalizer_var_lib_t:dir rw_dir_perms;
|
|
Chris PeBenito |
1c1ac6 |
files_var_lib_filetrans(webalizer_t,webalizer_var_lib_t,file)
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
445522 |
kernel_read_kernel_sysctls(webalizer_t)
|
|
Chris PeBenito |
f33561 |
kernel_read_system_state(webalizer_t)
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
f33561 |
corenet_tcp_sendrecv_all_if(webalizer_t)
|
|
Chris PeBenito |
f33561 |
corenet_udp_sendrecv_all_if(webalizer_t)
|
|
Chris PeBenito |
f33561 |
corenet_raw_sendrecv_all_if(webalizer_t)
|
|
Chris PeBenito |
f33561 |
corenet_udp_sendrecv_all_nodes(webalizer_t)
|
|
Chris PeBenito |
f33561 |
corenet_tcp_sendrecv_all_nodes(webalizer_t)
|
|
Chris PeBenito |
f33561 |
corenet_raw_sendrecv_all_nodes(webalizer_t)
|
|
Chris PeBenito |
f33561 |
corenet_tcp_sendrecv_all_ports(webalizer_t)
|
|
Chris PeBenito |
f33561 |
corenet_udp_sendrecv_all_ports(webalizer_t)
|
|
Chris PeBenito |
bd7037 |
corenet_non_ipsec_sendrecv(webalizer_t)
|
|
Chris PeBenito |
f33561 |
corenet_tcp_bind_all_nodes(webalizer_t)
|
|
Chris PeBenito |
f33561 |
corenet_udp_bind_all_nodes(webalizer_t)
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
f33561 |
fs_search_auto_mountpoints(webalizer_t)
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
f33561 |
files_read_etc_files(webalizer_t)
|
|
Chris PeBenito |
f33561 |
files_read_etc_runtime_files(webalizer_t)
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
f33561 |
libs_use_ld_so(webalizer_t)
|
|
Chris PeBenito |
f33561 |
libs_use_shared_libs(webalizer_t)
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
f33561 |
logging_list_logs(webalizer_t)
|
|
Chris PeBenito |
f33561 |
logging_send_syslog_msg(webalizer_t)
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
f33561 |
miscfiles_read_localization(webalizer_t)
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
f33561 |
sysnet_read_config(webalizer_t)
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
103fe2 |
userdom_use_unpriv_users_fds(webalizer_t)
|
|
Chris PeBenito |
103fe2 |
userdom_dontaudit_search_all_users_home_content(webalizer_t)
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
be4690 |
apache_read_log(webalizer_t)
|
|
Chris PeBenito |
be4690 |
apache_manage_sys_content(webalizer_t)
|
|
Chris PeBenito |
be4690 |
|
|
Chris PeBenito |
3e639a |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
1815ba |
term_use_generic_ptys(webalizer_t)
|
|
Chris PeBenito |
1815ba |
term_use_unallocated_ttys(webalizer_t)
|
|
Chris PeBenito |
3e639a |
')
|
|
Chris PeBenito |
3e639a |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
77f6e2 |
ftp_read_log(webalizer_t)
|
|
Chris PeBenito |
77f6e2 |
')
|
|
Chris PeBenito |
77f6e2 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
f33561 |
nis_use_ypbind(webalizer_t)
|
|
Chris PeBenito |
f33561 |
')
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
1815ba |
nscd_socket_use(webalizer_t)
|
|
Chris PeBenito |
f33561 |
')
|
|
Chris PeBenito |
f33561 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
f33561 |
cron_system_entry(webalizer_t,webalizer_exec_t)
|
|
Chris PeBenito |
f33561 |
')
|