2005-06-27 18:36:56 +00:00
|
|
|
## <summary>Internet services daemon.</summary>
|
|
|
|
|
2005-07-12 20:34:24 +00:00
|
|
|
########################################
|
2005-06-27 18:36:56 +00:00
|
|
|
## <summary>
|
|
|
|
## Define the specified domain as a inetd service.
|
|
|
|
## </summary>
|
|
|
|
## <desc>
|
2006-01-25 15:45:48 +00:00
|
|
|
## <p>
|
2005-06-27 18:36:56 +00:00
|
|
|
## Define the specified domain as a inetd service. The
|
|
|
|
## inetd_service_domain(), inetd_tcp_service_domain(),
|
|
|
|
## or inetd_udp_service_domain() interfaces should be used
|
|
|
|
## instead of this interface, as this interface only provides
|
|
|
|
## the common rules to these three interfaces.
|
2006-01-25 15:45:48 +00:00
|
|
|
## </p>
|
2005-06-27 18:36:56 +00:00
|
|
|
## </desc>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-27 18:36:56 +00:00
|
|
|
## The type associated with the inetd service process.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-27 18:36:56 +00:00
|
|
|
## </param>
|
|
|
|
## <param name="entrypoint">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-27 18:36:56 +00:00
|
|
|
## The type associated with the process program.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-27 18:36:56 +00:00
|
|
|
## </param>
|
2005-07-12 20:34:24 +00:00
|
|
|
#
|
2005-06-27 18:36:56 +00:00
|
|
|
interface(`inetd_core_service_domain',`
|
|
|
|
gen_require(`
|
|
|
|
type inetd_t;
|
|
|
|
role system_r;
|
|
|
|
')
|
|
|
|
|
|
|
|
domain_type($1)
|
|
|
|
domain_entry_file($1,$2)
|
|
|
|
|
|
|
|
role system_r types $1;
|
|
|
|
|
2007-03-23 21:01:49 +00:00
|
|
|
domtrans_pattern(inetd_t,$2,$1)
|
2005-10-24 22:08:13 +00:00
|
|
|
|
2007-03-23 21:01:49 +00:00
|
|
|
allow inetd_t $1:process sigkill;
|
2005-06-27 18:36:56 +00:00
|
|
|
')
|
|
|
|
|
2005-07-12 20:34:24 +00:00
|
|
|
########################################
|
2005-06-27 18:36:56 +00:00
|
|
|
## <summary>
|
|
|
|
## Define the specified domain as a TCP inetd service.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-27 18:36:56 +00:00
|
|
|
## The type associated with the inetd service process.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-27 18:36:56 +00:00
|
|
|
## </param>
|
|
|
|
## <param name="entrypoint">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-27 18:36:56 +00:00
|
|
|
## The type associated with the process program.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-27 18:36:56 +00:00
|
|
|
## </param>
|
2005-07-12 20:34:24 +00:00
|
|
|
#
|
2005-06-27 18:36:56 +00:00
|
|
|
interface(`inetd_tcp_service_domain',`
|
|
|
|
|
|
|
|
gen_require(`
|
|
|
|
type inetd_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
inetd_core_service_domain($1,$2)
|
|
|
|
|
|
|
|
allow $1 inetd_t:tcp_socket rw_stream_socket_perms;
|
|
|
|
')
|
|
|
|
|
2005-07-12 20:34:24 +00:00
|
|
|
########################################
|
2005-06-27 18:36:56 +00:00
|
|
|
## <summary>
|
|
|
|
## Define the specified domain as a UDP inetd service.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-27 18:36:56 +00:00
|
|
|
## The type associated with the inetd service process.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-27 18:36:56 +00:00
|
|
|
## </param>
|
|
|
|
## <param name="entrypoint">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-27 18:36:56 +00:00
|
|
|
## The type associated with the process program.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-27 18:36:56 +00:00
|
|
|
## </param>
|
2005-07-12 20:34:24 +00:00
|
|
|
#
|
2005-06-27 18:36:56 +00:00
|
|
|
interface(`inetd_udp_service_domain',`
|
|
|
|
gen_require(`
|
|
|
|
type inetd_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
inetd_core_service_domain($1,$2)
|
|
|
|
|
|
|
|
allow $1 inetd_t:udp_socket rw_socket_perms;
|
|
|
|
')
|
|
|
|
|
2005-07-12 20:34:24 +00:00
|
|
|
########################################
|
2005-06-27 18:36:56 +00:00
|
|
|
## <summary>
|
|
|
|
## Define the specified domain as a TCP and UDP inetd service.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-27 18:36:56 +00:00
|
|
|
## The type associated with the inetd service process.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-27 18:36:56 +00:00
|
|
|
## </param>
|
|
|
|
## <param name="entrypoint">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-27 18:36:56 +00:00
|
|
|
## The type associated with the process program.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-27 18:36:56 +00:00
|
|
|
## </param>
|
2005-07-12 20:34:24 +00:00
|
|
|
#
|
2005-06-27 18:36:56 +00:00
|
|
|
interface(`inetd_service_domain',`
|
|
|
|
gen_require(`
|
|
|
|
type inetd_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
inetd_core_service_domain($1,$2)
|
|
|
|
|
|
|
|
allow $1 inetd_t:tcp_socket rw_stream_socket_perms;
|
|
|
|
allow $1 inetd_t:udp_socket rw_socket_perms;
|
|
|
|
')
|
2005-07-12 20:34:24 +00:00
|
|
|
|
2005-08-17 17:31:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Inherit and use file descriptors from inetd.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-08-17 17:31:57 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-17 17:31:57 +00:00
|
|
|
## </param>
|
|
|
|
#
|
2006-03-02 23:41:11 +00:00
|
|
|
interface(`inetd_use_fds',`
|
2005-08-17 17:31:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type inetd_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 inetd_t:fd use;
|
|
|
|
')
|
|
|
|
|
2005-07-12 20:34:24 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
2006-08-15 20:00:58 +00:00
|
|
|
## Connect to the inetd service using a TCP connection. (Deprecated)
|
2005-07-12 20:34:24 +00:00
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-07-12 20:34:24 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-07-12 20:34:24 +00:00
|
|
|
## </param>
|
|
|
|
#
|
2005-08-03 15:16:33 +00:00
|
|
|
interface(`inetd_tcp_connect',`
|
2006-08-15 20:00:58 +00:00
|
|
|
refpolicywarn(`$0($*) has been deprecated.')
|
2005-07-12 20:34:24 +00:00
|
|
|
')
|
2005-08-11 15:17:13 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Run inetd child process in the inet child domain
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-08-11 15:17:13 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-11 15:17:13 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`inetd_domtrans_child',`
|
|
|
|
gen_require(`
|
|
|
|
type inetd_child_t, inetd_child_exec_t;
|
|
|
|
')
|
|
|
|
|
2007-03-23 23:24:59 +00:00
|
|
|
corecmd_search_bin($1)
|
2006-12-12 20:08:08 +00:00
|
|
|
domtrans_pattern($1,inetd_child_exec_t,inetd_child_t)
|
2005-08-11 15:17:13 +00:00
|
|
|
')
|
2005-09-08 17:12:38 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
2006-08-15 20:00:58 +00:00
|
|
|
## Send UDP network traffic to inetd. (Deprecated)
|
2005-09-08 17:12:38 +00:00
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-09-08 17:12:38 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-08 17:12:38 +00:00
|
|
|
## </param>
|
|
|
|
#
|
2006-03-02 23:41:11 +00:00
|
|
|
interface(`inetd_udp_send',`
|
2006-08-15 20:00:58 +00:00
|
|
|
refpolicywarn(`$0($*) has been deprecated.')
|
2005-09-08 17:12:38 +00:00
|
|
|
')
|
2005-11-29 15:49:18 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read and write inetd TCP sockets.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-11-29 15:49:18 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-11-29 15:49:18 +00:00
|
|
|
## </param>
|
|
|
|
#
|
2006-02-02 21:08:12 +00:00
|
|
|
interface(`inetd_rw_tcp_sockets',`
|
2005-11-29 15:49:18 +00:00
|
|
|
gen_require(`
|
|
|
|
type inetd_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 inetd_t:tcp_socket rw_stream_socket_perms;
|
|
|
|
')
|