Chris PeBenito d17b4d
Chris PeBenito 5ea24b
policy_module(ktalk,1.1.0)
Chris PeBenito d17b4d
Chris PeBenito d17b4d
########################################
Chris PeBenito d17b4d
#
Chris PeBenito d17b4d
# Declarations
Chris PeBenito d17b4d
#
Chris PeBenito d17b4d
Chris PeBenito d17b4d
type ktalkd_t;
Chris PeBenito d17b4d
type ktalkd_exec_t;
Chris PeBenito d17b4d
inetd_udp_service_domain(ktalkd_t,ktalkd_exec_t)
Chris PeBenito d17b4d
role system_r types ktalkd_t;
Chris PeBenito d17b4d
Chris PeBenito d17b4d
type ktalkd_tmp_t;
Chris PeBenito d17b4d
files_tmp_file(ktalkd_tmp_t)
Chris PeBenito d17b4d
Chris PeBenito d17b4d
type ktalkd_var_run_t;
Chris PeBenito d17b4d
files_pid_file(ktalkd_var_run_t)
Chris PeBenito d17b4d
Chris PeBenito d17b4d
########################################
Chris PeBenito d17b4d
#
Chris PeBenito d17b4d
# Local policy
Chris PeBenito d17b4d
#
Chris PeBenito d17b4d
Chris PeBenito d17b4d
allow ktalkd_t self:process signal_perms;
Chris PeBenito d17b4d
allow ktalkd_t self:fifo_file rw_file_perms;
Chris PeBenito d17b4d
allow ktalkd_t self:tcp_socket connected_stream_socket_perms;
Chris PeBenito 2e0a88
allow ktalkd_t self:udp_socket create_socket_perms;
Chris PeBenito d17b4d
# for identd
Chris PeBenito d17b4d
# cjp: this should probably only be inetd_child rules?
Chris PeBenito d17b4d
allow ktalkd_t self:netlink_tcpdiag_socket r_netlink_socket_perms;
Chris PeBenito d17b4d
allow ktalkd_t self:capability { setuid setgid };
Chris PeBenito d17b4d
allow ktalkd_t self:dir search;
Chris PeBenito d17b4d
allow ktalkd_t self:{ lnk_file file } { getattr read };
Chris PeBenito d17b4d
files_search_home(ktalkd_t)
Chris PeBenito 132880
optional_policy(`kerberos',`
Chris PeBenito d17b4d
	kerberos_use(ktalkd_t)
Chris PeBenito d17b4d
')
Chris PeBenito d17b4d
#end for identd
Chris PeBenito d17b4d
Chris PeBenito d17b4d
allow ktalkd_t ktalkd_tmp_t:dir create_dir_perms;
Chris PeBenito d17b4d
allow ktalkd_t ktalkd_tmp_t:file create_file_perms;
Chris PeBenito d17b4d
files_create_tmp_files(ktalkd_t, ktalkd_tmp_t, { file dir })
Chris PeBenito d17b4d
Chris PeBenito d17b4d
allow ktalkd_t ktalkd_var_run_t:file create_file_perms;
Chris PeBenito d1b9d9
allow ktalkd_t ktalkd_var_run_t:dir rw_dir_perms;
Chris PeBenito d17b4d
files_create_pid(ktalkd_t,ktalkd_var_run_t)
Chris PeBenito d17b4d
Chris PeBenito d17b4d
kernel_read_kernel_sysctl(ktalkd_t)
Chris PeBenito d17b4d
kernel_read_system_state(ktalkd_t)
Chris PeBenito d17b4d
kernel_read_network_state(ktalkd_t)
Chris PeBenito d17b4d
Chris PeBenito d17b4d
corenet_tcp_sendrecv_all_if(ktalkd_t)
Chris PeBenito 162dfc
corenet_udp_sendrecv_all_if(ktalkd_t)
Chris PeBenito d17b4d
corenet_raw_sendrecv_all_if(ktalkd_t)
Chris PeBenito d17b4d
corenet_tcp_sendrecv_all_nodes(ktalkd_t)
Chris PeBenito 162dfc
corenet_udp_sendrecv_all_nodes(ktalkd_t)
Chris PeBenito d17b4d
corenet_raw_sendrecv_all_nodes(ktalkd_t)
Chris PeBenito d17b4d
corenet_tcp_sendrecv_all_ports(ktalkd_t)
Chris PeBenito 162dfc
corenet_udp_sendrecv_all_ports(ktalkd_t)
Chris PeBenito bd7037
corenet_non_ipsec_sendrecv(ktalkd_t)
Chris PeBenito 162dfc
corenet_tcp_bind_all_nodes(ktalkd_t)
Chris PeBenito 162dfc
corenet_udp_bind_all_nodes(ktalkd_t)
Chris PeBenito d17b4d
Chris PeBenito d17b4d
dev_read_urand(ktalkd_t)
Chris PeBenito d17b4d
Chris PeBenito d17b4d
fs_getattr_xattr_fs(ktalkd_t)
Chris PeBenito d17b4d
Chris PeBenito d17b4d
files_read_etc_files(ktalkd_t)
Chris PeBenito d17b4d
Chris PeBenito d17b4d
libs_use_ld_so(ktalkd_t)
Chris PeBenito d17b4d
libs_use_shared_libs(ktalkd_t)
Chris PeBenito d17b4d
logging_send_syslog_msg(ktalkd_t)
Chris PeBenito d17b4d
Chris PeBenito d17b4d
miscfiles_read_localization(ktalkd_t)
Chris PeBenito d17b4d
Chris PeBenito d17b4d
sysnet_read_config(ktalkd_t)
Chris PeBenito d17b4d
Chris PeBenito 132880
optional_policy(`nis',`
Chris PeBenito d17b4d
	nis_use_ypbind(ktalkd_t)
Chris PeBenito d17b4d
')
Chris PeBenito d17b4d
Chris PeBenito 132880
optional_policy(`nscd',`
Chris PeBenito d17b4d
	nscd_use_socket(ktalkd_t)
Chris PeBenito d17b4d
')