2005-09-08 13:42:13 +00:00
|
|
|
|
2007-10-11 18:12:29 +00:00
|
|
|
policy_module(ktalk,1.5.2)
|
2005-09-08 13:42:13 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type ktalkd_t;
|
|
|
|
type ktalkd_exec_t;
|
|
|
|
inetd_udp_service_domain(ktalkd_t,ktalkd_exec_t)
|
|
|
|
role system_r types ktalkd_t;
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
type ktalkd_log_t;
|
|
|
|
logging_log_file(ktalkd_log_t)
|
|
|
|
|
2005-09-08 13:42:13 +00:00
|
|
|
type ktalkd_tmp_t;
|
|
|
|
files_tmp_file(ktalkd_tmp_t)
|
|
|
|
|
|
|
|
type ktalkd_var_run_t;
|
|
|
|
files_pid_file(ktalkd_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow ktalkd_t self:process signal_perms;
|
2006-12-12 20:08:08 +00:00
|
|
|
allow ktalkd_t self:fifo_file rw_fifo_file_perms;
|
2005-09-08 13:42:13 +00:00
|
|
|
allow ktalkd_t self:tcp_socket connected_stream_socket_perms;
|
2005-11-10 21:37:54 +00:00
|
|
|
allow ktalkd_t self:udp_socket create_socket_perms;
|
2005-09-08 13:42:13 +00:00
|
|
|
# for identd
|
|
|
|
# cjp: this should probably only be inetd_child rules?
|
|
|
|
allow ktalkd_t self:netlink_tcpdiag_socket r_netlink_socket_perms;
|
|
|
|
allow ktalkd_t self:capability { setuid setgid };
|
|
|
|
files_search_home(ktalkd_t)
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-08 13:42:13 +00:00
|
|
|
kerberos_use(ktalkd_t)
|
|
|
|
')
|
|
|
|
#end for identd
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
allow ktalkd_t ktalkd_log_t:file manage_file_perms;
|
|
|
|
logging_log_filetrans(ktalkd_t,ktalkd_log_t,file)
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_dirs_pattern(ktalkd_t,ktalkd_tmp_t,ktalkd_tmp_t)
|
|
|
|
manage_files_pattern(ktalkd_t,ktalkd_tmp_t,ktalkd_tmp_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
files_tmp_filetrans(ktalkd_t, ktalkd_tmp_t, { file dir })
|
2005-09-08 13:42:13 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(ktalkd_t,ktalkd_var_run_t,ktalkd_var_run_t)
|
2006-03-02 23:41:11 +00:00
|
|
|
files_pid_filetrans(ktalkd_t,ktalkd_var_run_t,file)
|
2005-09-08 13:42:13 +00:00
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(ktalkd_t)
|
2005-09-08 13:42:13 +00:00
|
|
|
kernel_read_system_state(ktalkd_t)
|
|
|
|
kernel_read_network_state(ktalkd_t)
|
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(ktalkd_t)
|
|
|
|
corenet_all_recvfrom_netlabel(ktalkd_t)
|
2005-09-08 13:42:13 +00:00
|
|
|
corenet_tcp_sendrecv_all_if(ktalkd_t)
|
2005-10-24 17:06:34 +00:00
|
|
|
corenet_udp_sendrecv_all_if(ktalkd_t)
|
2005-09-08 13:42:13 +00:00
|
|
|
corenet_tcp_sendrecv_all_nodes(ktalkd_t)
|
2005-10-24 17:06:34 +00:00
|
|
|
corenet_udp_sendrecv_all_nodes(ktalkd_t)
|
2005-09-08 13:42:13 +00:00
|
|
|
corenet_tcp_sendrecv_all_ports(ktalkd_t)
|
2005-10-24 17:06:34 +00:00
|
|
|
corenet_udp_sendrecv_all_ports(ktalkd_t)
|
2005-09-08 13:42:13 +00:00
|
|
|
|
|
|
|
dev_read_urand(ktalkd_t)
|
|
|
|
|
|
|
|
fs_getattr_xattr_fs(ktalkd_t)
|
|
|
|
|
|
|
|
files_read_etc_files(ktalkd_t)
|
|
|
|
|
2007-10-11 18:12:29 +00:00
|
|
|
term_search_ptys(ktalkd_t)
|
|
|
|
|
|
|
|
auth_use_nsswitch(ktalkd_t)
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
init_read_utmp(ktalkd_t)
|
|
|
|
|
2005-09-08 13:42:13 +00:00
|
|
|
libs_use_ld_so(ktalkd_t)
|
|
|
|
libs_use_shared_libs(ktalkd_t)
|
|
|
|
logging_send_syslog_msg(ktalkd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(ktalkd_t)
|