Chris PeBenito 17de1b
Chris PeBenito 17de1b
policy_module(ktalk,1.2.2)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type ktalkd_t;
Chris PeBenito 17de1b
type ktalkd_exec_t;
Chris PeBenito 17de1b
inetd_udp_service_domain(ktalkd_t,ktalkd_exec_t)
Chris PeBenito 17de1b
role system_r types ktalkd_t;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type ktalkd_log_t;
Chris PeBenito 17de1b
logging_log_file(ktalkd_log_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type ktalkd_tmp_t;
Chris PeBenito 17de1b
files_tmp_file(ktalkd_tmp_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type ktalkd_var_run_t;
Chris PeBenito 17de1b
files_pid_file(ktalkd_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 ktalkd_t self:process signal_perms;
Chris PeBenito 17de1b
allow ktalkd_t self:fifo_file rw_file_perms;
Chris PeBenito 17de1b
allow ktalkd_t self:tcp_socket connected_stream_socket_perms;
Chris PeBenito 17de1b
allow ktalkd_t self:udp_socket create_socket_perms;
Chris PeBenito 17de1b
# for identd
Chris PeBenito 17de1b
# cjp: this should probably only be inetd_child rules?
Chris PeBenito 17de1b
allow ktalkd_t self:netlink_tcpdiag_socket r_netlink_socket_perms;
Chris PeBenito 17de1b
allow ktalkd_t self:capability { setuid setgid };
Chris PeBenito 17de1b
allow ktalkd_t self:dir search;
Chris PeBenito 17de1b
allow ktalkd_t self:{ lnk_file file } { getattr read };
Chris PeBenito 17de1b
files_search_home(ktalkd_t)
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	kerberos_use(ktalkd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
#end for identd
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow ktalkd_t ktalkd_log_t:file manage_file_perms;
Chris PeBenito 17de1b
logging_log_filetrans(ktalkd_t,ktalkd_log_t,file)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow ktalkd_t ktalkd_tmp_t:dir create_dir_perms;
Chris PeBenito 17de1b
allow ktalkd_t ktalkd_tmp_t:file create_file_perms;
Chris PeBenito 17de1b
files_tmp_filetrans(ktalkd_t, ktalkd_tmp_t, { file dir })
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow ktalkd_t ktalkd_var_run_t:file create_file_perms;
Chris PeBenito 17de1b
allow ktalkd_t ktalkd_var_run_t:dir rw_dir_perms;
Chris PeBenito 17de1b
files_pid_filetrans(ktalkd_t,ktalkd_var_run_t,file)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
kernel_read_kernel_sysctls(ktalkd_t)
Chris PeBenito 17de1b
kernel_read_system_state(ktalkd_t)
Chris PeBenito 17de1b
kernel_read_network_state(ktalkd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
corenet_non_ipsec_sendrecv(ktalkd_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_if(ktalkd_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_if(ktalkd_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_nodes(ktalkd_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_nodes(ktalkd_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_ports(ktalkd_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_ports(ktalkd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_urand(ktalkd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_getattr_xattr_fs(ktalkd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_read_etc_files(ktalkd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
init_read_utmp(ktalkd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
libs_use_ld_so(ktalkd_t)
Chris PeBenito 17de1b
libs_use_shared_libs(ktalkd_t)
Chris PeBenito 17de1b
logging_send_syslog_msg(ktalkd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(ktalkd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
sysnet_read_config(ktalkd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	nis_use_ypbind(ktalkd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	nscd_socket_use(ktalkd_t)
Chris PeBenito 17de1b
')