Chris PeBenito 17de1b
Chris PeBenito 17de1b
policy_module(dante,1.0.1)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type dante_t;
Chris PeBenito 17de1b
type dante_exec_t;
Chris PeBenito 17de1b
init_daemon_domain(dante_t,dante_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type dante_conf_t;
Chris PeBenito 17de1b
files_type(dante_conf_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type dante_var_run_t;
Chris PeBenito 17de1b
files_pid_file(dante_var_run_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Local policy
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow dante_t self:capability { setuid setgid };
Chris PeBenito 17de1b
dontaudit dante_t self:capability sys_tty_config;
Chris PeBenito 17de1b
allow dante_t self:process signal_perms;
Chris PeBenito 17de1b
allow dante_t self:fifo_file { read write };
Chris PeBenito 17de1b
allow dante_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 17de1b
allow dante_t self:udp_socket create_socket_perms;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow dante_t dante_conf_t:dir r_dir_perms;
Chris PeBenito 17de1b
allow dante_t dante_conf_t:file r_file_perms;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow dante_t dante_var_run_t:file create_file_perms;
Chris PeBenito 17de1b
allow dante_t dante_var_run_t:dir rw_dir_perms;
Chris PeBenito 17de1b
files_pid_filetrans(dante_t,dante_var_run_t,file)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
kernel_read_kernel_sysctls(dante_t)
Chris PeBenito 17de1b
kernel_list_proc(dante_t)
Chris PeBenito 17de1b
kernel_read_proc_symlinks(dante_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
corenet_non_ipsec_sendrecv(dante_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_generic_if(dante_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_generic_if(dante_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_nodes(dante_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_nodes(dante_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_ports(dante_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_ports(dante_t)
Chris PeBenito 17de1b
corenet_tcp_bind_all_nodes(dante_t)
Chris PeBenito 17de1b
#TODO: no portcons for this type
Chris PeBenito 17de1b
#allow dante_t socks_port_t:tcp_socket name_bind;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_sysfs(dante_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
domain_use_interactive_fds(dante_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_read_etc_files(dante_t)
Chris PeBenito 17de1b
files_read_etc_runtime_files(dante_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_getattr_all_fs(dante_t)
Chris PeBenito 17de1b
fs_search_auto_mountpoints(dante_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
term_dontaudit_use_console(dante_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
init_use_fds(dante_t)
Chris PeBenito 17de1b
init_use_script_ptys(dante_t)
Chris PeBenito 17de1b
init_write_utmp(dante_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
libs_use_ld_so(dante_t)
Chris PeBenito 17de1b
libs_use_shared_libs(dante_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
logging_send_syslog_msg(dante_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(dante_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
sysnet_read_config(dante_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
userdom_dontaudit_use_unpriv_user_fds(dante_t)
Chris PeBenito 17de1b
userdom_dontaudit_search_sysadm_home_dirs(dante_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
ifdef(`targeted_policy',`
Chris PeBenito 17de1b
	term_dontaudit_use_unallocated_ttys(dante_t)
Chris PeBenito 17de1b
	term_dontaudit_use_generic_ptys(dante_t)
Chris PeBenito 17de1b
	files_dontaudit_read_root_files(dante_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	seutil_sigchld_newrole(dante_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	udev_read_db(dante_t)
Chris PeBenito 17de1b
')