selinux-policy/policy/modules/services/canna.te

95 lines
2.3 KiB
Plaintext
Raw Normal View History

2005-10-21 16:39:28 +00:00
policy_module(canna, 1.8.0)
2005-10-21 16:39:28 +00:00
########################################
#
# Declarations
#
type canna_t;
type canna_exec_t;
init_daemon_domain(canna_t, canna_exec_t)
2005-10-21 16:39:28 +00:00
2008-10-08 15:50:03 +00:00
type canna_initrc_exec_t;
init_script_file(canna_initrc_exec_t)
2005-10-21 16:39:28 +00:00
type canna_log_t;
logging_log_file(canna_log_t)
type canna_var_lib_t;
files_type(canna_var_lib_t)
type canna_var_run_t;
files_pid_file(canna_var_run_t)
########################################
#
# Local policy
#
2005-10-24 18:40:24 +00:00
allow canna_t self:capability { setgid setuid net_bind_service };
2005-10-21 16:39:28 +00:00
dontaudit canna_t self:capability sys_tty_config;
allow canna_t self:process signal_perms;
allow canna_t self:unix_stream_socket { connectto create_stream_socket_perms};
allow canna_t self:unix_dgram_socket create_stream_socket_perms;
allow canna_t self:tcp_socket create_stream_socket_perms;
manage_files_pattern(canna_t, canna_log_t, canna_log_t)
2006-12-12 20:08:08 +00:00
allow canna_t canna_log_t:dir setattr;
logging_log_filetrans(canna_t, canna_log_t, { file dir })
2005-10-21 16:39:28 +00:00
manage_dirs_pattern(canna_t, canna_var_lib_t, canna_var_lib_t)
manage_files_pattern(canna_t, canna_var_lib_t, canna_var_lib_t)
manage_lnk_files_pattern(canna_t, canna_var_lib_t, canna_var_lib_t)
files_var_lib_filetrans(canna_t, canna_var_lib_t, file)
2005-10-21 16:39:28 +00:00
manage_files_pattern(canna_t, canna_var_run_t, canna_var_run_t)
manage_sock_files_pattern(canna_t, canna_var_run_t, canna_var_run_t)
2006-02-21 18:40:44 +00:00
files_pid_filetrans(canna_t, canna_var_run_t, { file sock_file })
2005-10-21 16:39:28 +00:00
kernel_read_kernel_sysctls(canna_t)
2005-10-21 16:39:28 +00:00
kernel_read_system_state(canna_t)
corenet_all_recvfrom_unlabeled(canna_t)
corenet_all_recvfrom_netlabel(canna_t)
2005-10-21 16:39:28 +00:00
corenet_tcp_sendrecv_all_if(canna_t)
corenet_tcp_sendrecv_all_nodes(canna_t)
2005-10-21 19:36:49 +00:00
corenet_tcp_sendrecv_all_ports(canna_t)
2005-10-21 16:39:28 +00:00
corenet_tcp_connect_all_ports(canna_t)
2006-05-30 19:46:34 +00:00
corenet_sendrecv_all_client_packets(canna_t)
2005-10-21 16:39:28 +00:00
dev_read_sysfs(canna_t)
fs_getattr_all_fs(canna_t)
fs_search_auto_mountpoints(canna_t)
2006-02-20 21:33:25 +00:00
domain_use_interactive_fds(canna_t)
2005-10-21 16:39:28 +00:00
files_read_etc_files(canna_t)
files_read_etc_runtime_files(canna_t)
files_read_usr_files(canna_t)
files_search_tmp(canna_t)
files_dontaudit_read_root_files(canna_t)
2005-10-21 16:39:28 +00:00
logging_send_syslog_msg(canna_t)
miscfiles_read_localization(canna_t)
sysnet_read_config(canna_t)
2006-02-20 21:33:25 +00:00
userdom_dontaudit_use_unpriv_user_fds(canna_t)
sysadm_dontaudit_search_home_dirs(canna_t)
2005-10-21 16:39:28 +00:00
optional_policy(`
2005-10-21 16:39:28 +00:00
nis_use_ypbind(canna_t)
')
optional_policy(`
2005-10-21 16:39:28 +00:00
seutil_sigchld_newrole(canna_t)
')
optional_policy(`
2005-10-21 16:39:28 +00:00
udev_read_db(canna_t)
')