2005-08-11 15:17:13 +00:00
|
|
|
|
2009-08-05 14:59:21 +00:00
|
|
|
policy_module(tcpd, 1.4.0)
|
2005-08-11 15:17:13 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
type tcpd_t;
|
|
|
|
type tcpd_exec_t;
|
2007-09-17 14:33:40 +00:00
|
|
|
inetd_tcp_service_domain(tcpd_t, tcpd_exec_t)
|
2005-08-11 15:17:13 +00:00
|
|
|
role system_r types tcpd_t;
|
|
|
|
|
|
|
|
type tcpd_tmp_t;
|
|
|
|
files_tmp_file(tcpd_tmp_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
allow tcpd_t self:tcp_socket create_stream_socket_perms;
|
|
|
|
|
2007-09-17 14:33:40 +00:00
|
|
|
manage_dirs_pattern(tcpd_t, tcpd_tmp_t, tcpd_tmp_t)
|
|
|
|
manage_files_pattern(tcpd_t, tcpd_tmp_t, tcpd_tmp_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
files_tmp_filetrans(tcpd_t, tcpd_tmp_t, { file dir })
|
2005-08-11 15:17:13 +00:00
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(tcpd_t)
|
|
|
|
corenet_all_recvfrom_netlabel(tcpd_t)
|
2009-01-06 20:24:10 +00:00
|
|
|
corenet_tcp_sendrecv_generic_if(tcpd_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_sendrecv_generic_node(tcpd_t)
|
2005-08-11 15:17:13 +00:00
|
|
|
corenet_tcp_sendrecv_all_ports(tcpd_t)
|
|
|
|
|
|
|
|
fs_getattr_xattr_fs(tcpd_t)
|
|
|
|
|
|
|
|
# Run other daemons in the inetd child domain.
|
|
|
|
corecmd_search_bin(tcpd_t)
|
|
|
|
|
|
|
|
files_read_etc_files(tcpd_t)
|
|
|
|
# no good reason for files_dontaudit_search_var, probably nscd
|
|
|
|
files_dontaudit_search_var(tcpd_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(tcpd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(tcpd_t)
|
|
|
|
|
|
|
|
sysnet_read_config(tcpd_t)
|
|
|
|
|
|
|
|
inetd_domtrans_child(tcpd_t)
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-08-11 15:17:13 +00:00
|
|
|
nis_use_ypbind(tcpd_t)
|
|
|
|
')
|