Chris PeBenito 350948
Chris PeBenito d3d270
policy_module(canna,1.2.0)
Chris PeBenito 350948
Chris PeBenito 350948
########################################
Chris PeBenito 350948
#
Chris PeBenito 350948
# Declarations
Chris PeBenito 350948
#
Chris PeBenito 350948
Chris PeBenito 350948
type canna_t;
Chris PeBenito 350948
type canna_exec_t;
Chris PeBenito 350948
init_daemon_domain(canna_t,canna_exec_t)
Chris PeBenito 350948
Chris PeBenito 350948
type canna_log_t;
Chris PeBenito 350948
logging_log_file(canna_log_t)
Chris PeBenito 350948
Chris PeBenito 350948
type canna_var_lib_t;
Chris PeBenito 350948
files_type(canna_var_lib_t)
Chris PeBenito 350948
Chris PeBenito 350948
type canna_var_run_t;
Chris PeBenito 350948
files_pid_file(canna_var_run_t)
Chris PeBenito 350948
Chris PeBenito 350948
########################################
Chris PeBenito 350948
#
Chris PeBenito 350948
# Local policy
Chris PeBenito 350948
#
Chris PeBenito 350948
Chris PeBenito 9bbc75
allow canna_t self:capability { setgid setuid net_bind_service };
Chris PeBenito 350948
dontaudit canna_t self:capability sys_tty_config;
Chris PeBenito 350948
allow canna_t self:process signal_perms;
Chris PeBenito 350948
allow canna_t self:unix_stream_socket { connectto create_stream_socket_perms};
Chris PeBenito 350948
allow canna_t self:unix_dgram_socket create_stream_socket_perms;
Chris PeBenito 350948
allow canna_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 350948
Chris PeBenito 350948
allow canna_t canna_log_t:file create_file_perms;
Chris PeBenito da4fc9
allow canna_t canna_log_t:dir { rw_dir_perms setattr };
Chris PeBenito 9d5949
logging_filetrans_log(canna_t,canna_log_t,{ file dir })
Chris PeBenito 350948
Chris PeBenito 350948
allow canna_t canna_var_lib_t:dir create_dir_perms;
Chris PeBenito 350948
allow canna_t canna_var_lib_t:file create_file_perms;
Chris PeBenito 350948
allow canna_t canna_var_lib_t:lnk_file create_lnk_perms;
Chris PeBenito 9d5949
files_filetrans_var_lib(canna_t,canna_var_lib_t)
Chris PeBenito 350948
Chris PeBenito 350948
allow canna_t canna_var_run_t:dir rw_dir_perms;
Chris PeBenito 350948
allow canna_t canna_var_run_t:file create_file_perms;
Chris PeBenito 350948
allow canna_t canna_var_run_t:sock_file create_file_perms;
Chris PeBenito 9d5949
files_filetrans_pid(canna_t, canna_var_run_t, { file sock_file })
Chris PeBenito 350948
Chris PeBenito 350948
kernel_read_kernel_sysctl(canna_t)
Chris PeBenito 350948
kernel_read_system_state(canna_t)
Chris PeBenito 350948
Chris PeBenito 350948
corenet_tcp_sendrecv_all_if(canna_t)
Chris PeBenito 350948
corenet_raw_sendrecv_all_if(canna_t)
Chris PeBenito 350948
corenet_tcp_sendrecv_all_nodes(canna_t)
Chris PeBenito 350948
corenet_raw_sendrecv_all_nodes(canna_t)
Chris PeBenito da4fc9
corenet_tcp_sendrecv_all_ports(canna_t)
Chris PeBenito bd7037
corenet_non_ipsec_sendrecv(canna_t)
Chris PeBenito 350948
corenet_tcp_bind_all_nodes(canna_t)
Chris PeBenito 350948
corenet_tcp_connect_all_ports(canna_t)
Chris PeBenito 350948
Chris PeBenito 350948
dev_read_sysfs(canna_t)
Chris PeBenito 350948
Chris PeBenito 350948
fs_getattr_all_fs(canna_t)
Chris PeBenito 350948
fs_search_auto_mountpoints(canna_t)
Chris PeBenito 350948
Chris PeBenito 350948
term_dontaudit_use_console(canna_t)
Chris PeBenito 350948
Chris PeBenito 350948
domain_use_wide_inherit_fd(canna_t)
Chris PeBenito 350948
Chris PeBenito 350948
files_read_etc_files(canna_t)
Chris PeBenito 350948
files_read_etc_runtime_files(canna_t)
Chris PeBenito 350948
files_read_usr_files(canna_t)
Chris PeBenito 350948
files_search_tmp(canna_t)
Chris PeBenito 350948
files_dontaudit_read_root_file(canna_t)
Chris PeBenito 350948
Chris PeBenito 350948
init_use_fd(canna_t)
Chris PeBenito 350948
init_use_script_pty(canna_t)
Chris PeBenito 350948
Chris PeBenito 350948
libs_use_ld_so(canna_t)
Chris PeBenito 350948
libs_use_shared_libs(canna_t)
Chris PeBenito 350948
Chris PeBenito 350948
logging_send_syslog_msg(canna_t)
Chris PeBenito 350948
Chris PeBenito 350948
miscfiles_read_localization(canna_t)
Chris PeBenito 350948
Chris PeBenito 350948
sysnet_read_config(canna_t)
Chris PeBenito 350948
Chris PeBenito 350948
userdom_dontaudit_use_unpriv_user_fd(canna_t)
Chris PeBenito 350948
userdom_dontaudit_search_sysadm_home_dir(canna_t)
Chris PeBenito 350948
Chris PeBenito 350948
ifdef(`targeted_policy',`
Chris PeBenito 350948
	term_dontaudit_use_unallocated_tty(canna_t)
Chris PeBenito 350948
	term_dontaudit_use_generic_pty(canna_t)
Chris PeBenito 350948
	files_dontaudit_read_root_file(canna_t)
Chris PeBenito 350948
')
Chris PeBenito 350948
Chris PeBenito 132880
optional_policy(`nis',`
Chris PeBenito 350948
	nis_use_ypbind(canna_t)
Chris PeBenito 350948
')
Chris PeBenito 350948
Chris PeBenito 132880
optional_policy(`selinuxutil',`
Chris PeBenito 350948
	seutil_sigchld_newrole(canna_t)
Chris PeBenito 350948
')
Chris PeBenito 350948
Chris PeBenito 132880
optional_policy(`udev',`
Chris PeBenito 350948
	udev_read_db(canna_t)
Chris PeBenito 350948
')