|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
9570b2 |
policy_module(ktalk, 1.7.0)
|
|
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 |
0bfccd |
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 |
c0868a |
allow ktalkd_t self:fifo_file rw_fifo_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 |
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 |
0bfccd |
logging_log_filetrans(ktalkd_t, ktalkd_log_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(ktalkd_t, ktalkd_tmp_t, ktalkd_tmp_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(ktalkd_t, ktalkd_tmp_t, ktalkd_tmp_t)
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(ktalkd_t, ktalkd_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(ktalkd_t, ktalkd_var_run_t, ktalkd_var_run_t)
|
|
Chris PeBenito |
0bfccd |
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 |
190066 |
corenet_all_recvfrom_unlabeled(ktalkd_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(ktalkd_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(ktalkd_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(ktalkd_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(ktalkd_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(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 |
cdf98f |
term_search_ptys(ktalkd_t)
|
|
Chris PeBenito |
cdf98f |
|
|
Chris PeBenito |
cdf98f |
auth_use_nsswitch(ktalkd_t)
|
|
Chris PeBenito |
cdf98f |
|
|
Chris PeBenito |
17de1b |
init_read_utmp(ktalkd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(ktalkd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(ktalkd_t)
|