|
Chris PeBenito |
350948 |
|
|
Chris PeBenito |
141cff |
policy_module(canna,1.2.2)
|
|
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 |
103fe2 |
logging_log_filetrans(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 |
1c1ac6 |
files_var_lib_filetrans(canna_t,canna_var_lib_t,file)
|
|
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 |
103fe2 |
files_pid_filetrans(canna_t, canna_var_run_t, { file sock_file })
|
|
Chris PeBenito |
350948 |
|
|
Chris PeBenito |
445522 |
kernel_read_kernel_sysctls(canna_t)
|
|
Chris PeBenito |
350948 |
kernel_read_system_state(canna_t)
|
|
Chris PeBenito |
350948 |
|
|
Chris PeBenito |
b516e8 |
corenet_non_ipsec_sendrecv(canna_t)
|
|
Chris PeBenito |
350948 |
corenet_tcp_sendrecv_all_if(canna_t)
|
|
Chris PeBenito |
350948 |
corenet_tcp_sendrecv_all_nodes(canna_t)
|
|
Chris PeBenito |
da4fc9 |
corenet_tcp_sendrecv_all_ports(canna_t)
|
|
Chris PeBenito |
350948 |
corenet_tcp_connect_all_ports(canna_t)
|
|
Chris PeBenito |
141cff |
corenet_sendrecv_all_client_packets(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 |
15722e |
domain_use_interactive_fds(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 |
9e04f5 |
files_dontaudit_read_root_files(canna_t)
|
|
Chris PeBenito |
350948 |
|
|
Chris PeBenito |
1c1ac6 |
init_use_fds(canna_t)
|
|
Chris PeBenito |
1815ba |
init_use_script_ptys(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 |
15722e |
userdom_dontaudit_use_unpriv_user_fds(canna_t)
|
|
Chris PeBenito |
103fe2 |
userdom_dontaudit_search_sysadm_home_dirs(canna_t)
|
|
Chris PeBenito |
350948 |
|
|
Chris PeBenito |
350948 |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
1815ba |
term_dontaudit_use_unallocated_ttys(canna_t)
|
|
Chris PeBenito |
1815ba |
term_dontaudit_use_generic_ptys(canna_t)
|
|
Chris PeBenito |
9e04f5 |
files_dontaudit_read_root_files(canna_t)
|
|
Chris PeBenito |
350948 |
')
|
|
Chris PeBenito |
350948 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
350948 |
nis_use_ypbind(canna_t)
|
|
Chris PeBenito |
350948 |
')
|
|
Chris PeBenito |
350948 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
350948 |
seutil_sigchld_newrole(canna_t)
|
|
Chris PeBenito |
350948 |
')
|
|
Chris PeBenito |
350948 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
350948 |
udev_read_db(canna_t)
|
|
Chris PeBenito |
350948 |
')
|