Chris PeBenito d17b4d
Chris PeBenito b516e8
policy_module(ktalk,1.2.2)
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 a3cf80
type ktalkd_log_t;
Chris PeBenito a3cf80
logging_log_file(ktalkd_log_t)
Chris PeBenito a3cf80
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 bb7170
optional_policy(`
Chris PeBenito d17b4d
	kerberos_use(ktalkd_t)
Chris PeBenito d17b4d
')
Chris PeBenito d17b4d
#end for identd
Chris PeBenito d17b4d
Chris PeBenito a3cf80
allow ktalkd_t ktalkd_log_t:file manage_file_perms;
Chris PeBenito a3cf80
logging_log_filetrans(ktalkd_t,ktalkd_log_t,file)
Chris PeBenito a3cf80
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 103fe2
files_tmp_filetrans(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 1c1ac6
files_pid_filetrans(ktalkd_t,ktalkd_var_run_t,file)
Chris PeBenito d17b4d
Chris PeBenito 445522
kernel_read_kernel_sysctls(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 b516e8
corenet_non_ipsec_sendrecv(ktalkd_t)
Chris PeBenito d17b4d
corenet_tcp_sendrecv_all_if(ktalkd_t)
Chris PeBenito 162dfc
corenet_udp_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_tcp_sendrecv_all_ports(ktalkd_t)
Chris PeBenito 162dfc
corenet_udp_sendrecv_all_ports(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 a3cf80
init_read_utmp(ktalkd_t)
Chris PeBenito a3cf80
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 bb7170
optional_policy(`
Chris PeBenito d17b4d
	nis_use_ypbind(ktalkd_t)
Chris PeBenito d17b4d
')
Chris PeBenito d17b4d
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 1815ba
	nscd_socket_use(ktalkd_t)
Chris PeBenito d17b4d
')