|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
policy_module(denyhosts, 1.0.0)
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
########################################
|
|
Chris PeBenito |
e07fbc |
#
|
|
Chris PeBenito |
e07fbc |
# DenyHosts personal declarations.
|
|
Chris PeBenito |
e07fbc |
#
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
type denyhosts_t;
|
|
Chris PeBenito |
e07fbc |
type denyhosts_exec_t;
|
|
Chris PeBenito |
e07fbc |
init_daemon_domain(denyhosts_t, denyhosts_exec_t)
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
type denyhosts_initrc_exec_t;
|
|
Chris PeBenito |
e07fbc |
init_script_file(denyhosts_initrc_exec_t)
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
type denyhosts_var_lib_t;
|
|
Chris PeBenito |
e07fbc |
files_type(denyhosts_var_lib_t)
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
type denyhosts_var_lock_t;
|
|
Chris PeBenito |
e07fbc |
files_lock_file(denyhosts_var_lock_t)
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
type denyhosts_var_log_t;
|
|
Chris PeBenito |
e07fbc |
logging_log_file(denyhosts_var_log_t)
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
########################################
|
|
Chris PeBenito |
e07fbc |
#
|
|
Chris PeBenito |
e07fbc |
# DenyHosts personal policy.
|
|
Chris PeBenito |
e07fbc |
#
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
allow denyhosts_t self:netlink_route_socket create_netlink_socket_perms;
|
|
Chris PeBenito |
e07fbc |
allow denyhosts_t self:tcp_socket create_socket_perms;
|
|
Chris PeBenito |
e07fbc |
allow denyhosts_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
manage_files_pattern(denyhosts_t, denyhosts_var_lib_t, denyhosts_var_lib_t)
|
|
Chris PeBenito |
e07fbc |
files_var_lib_filetrans(denyhosts_t, denyhosts_var_lib_t, file)
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
manage_dirs_pattern(denyhosts_t, denyhosts_var_lock_t, denyhosts_var_lock_t)
|
|
Chris PeBenito |
e07fbc |
manage_files_pattern(denyhosts_t, denyhosts_var_lock_t, denyhosts_var_lock_t)
|
|
Chris PeBenito |
e07fbc |
files_lock_filetrans(denyhosts_t, denyhosts_var_lock_t, { dir file })
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
append_files_pattern(denyhosts_t, denyhosts_var_log_t, denyhosts_var_log_t)
|
|
Chris PeBenito |
e07fbc |
create_files_pattern(denyhosts_t, denyhosts_var_log_t, denyhosts_var_log_t)
|
|
Chris PeBenito |
e07fbc |
read_files_pattern(denyhosts_t, denyhosts_var_log_t, denyhosts_var_log_t)
|
|
Chris PeBenito |
e07fbc |
setattr_files_pattern(denyhosts_t, denyhosts_var_log_t, denyhosts_var_log_t)
|
|
Chris PeBenito |
e07fbc |
logging_log_filetrans(denyhosts_t, denyhosts_var_log_t, file)
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
kernel_read_system_state(denyhosts_t)
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
corecmd_exec_bin(denyhosts_t)
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
corenet_all_recvfrom_unlabeled(denyhosts_t)
|
|
Chris PeBenito |
e07fbc |
corenet_all_recvfrom_netlabel(denyhosts_t)
|
|
Chris PeBenito |
e07fbc |
corenet_tcp_sendrecv_generic_if(denyhosts_t)
|
|
Chris PeBenito |
e07fbc |
corenet_tcp_sendrecv_generic_node(denyhosts_t)
|
|
Chris PeBenito |
e07fbc |
corenet_tcp_bind_generic_node(denyhosts_t)
|
|
Chris PeBenito |
e07fbc |
corenet_tcp_connect_smtp_port(denyhosts_t)
|
|
Chris PeBenito |
e07fbc |
corenet_sendrecv_smtp_client_packets(denyhosts_t)
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
dev_read_urand(denyhosts_t)
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
files_read_etc_files(denyhosts_t)
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
# /var/log/secure
|
|
Chris PeBenito |
e07fbc |
logging_read_generic_logs(denyhosts_t)
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
miscfiles_read_localization(denyhosts_t)
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
sysnet_manage_config(denyhosts_t)
|
|
Chris PeBenito |
e07fbc |
sysnet_etc_filetrans_config(denyhosts_t)
|
|
Chris PeBenito |
e07fbc |
|
|
Chris PeBenito |
e07fbc |
optional_policy(`
|
|
Chris PeBenito |
e07fbc |
cron_system_entry(denyhosts_t, denyhosts_exec_t)
|
|
Chris PeBenito |
e07fbc |
')
|