|
Chris PeBenito |
24bf11 |
## <summary>Internet services daemon.</summary>
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
## <summary>
|
|
Chris PeBenito |
24bf11 |
## Define the specified domain as a inetd service.
|
|
Chris PeBenito |
24bf11 |
## </summary>
|
|
Chris PeBenito |
24bf11 |
## <desc>
|
|
Chris PeBenito |
24bf11 |
## Define the specified domain as a inetd service. The
|
|
Chris PeBenito |
24bf11 |
## inetd_service_domain(), inetd_tcp_service_domain(),
|
|
Chris PeBenito |
24bf11 |
## or inetd_udp_service_domain() interfaces should be used
|
|
Chris PeBenito |
24bf11 |
## instead of this interface, as this interface only provides
|
|
Chris PeBenito |
24bf11 |
## the common rules to these three interfaces.
|
|
Chris PeBenito |
24bf11 |
## </desc>
|
|
Chris PeBenito |
24bf11 |
## <param name="domain">
|
|
Chris PeBenito |
24bf11 |
## The type associated with the inetd service process.
|
|
Chris PeBenito |
24bf11 |
## </param>
|
|
Chris PeBenito |
24bf11 |
## <param name="entrypoint">
|
|
Chris PeBenito |
24bf11 |
## The type associated with the process program.
|
|
Chris PeBenito |
24bf11 |
## </param>
|
|
Chris PeBenito |
24bf11 |
interface(`inetd_core_service_domain',`
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
gen_require(`
|
|
Chris PeBenito |
24bf11 |
type inetd_t;
|
|
Chris PeBenito |
24bf11 |
role system_r;
|
|
Chris PeBenito |
24bf11 |
class fd use;
|
|
Chris PeBenito |
24bf11 |
class fifo_file rw_file_perms;
|
|
Chris PeBenito |
24bf11 |
class process { sigchld sigkill };
|
|
Chris PeBenito |
24bf11 |
')
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
domain_type($1)
|
|
Chris PeBenito |
24bf11 |
domain_entry_file($1,$2)
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
role system_r types $1;
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
domain_auto_trans(inetd_t,$2,$1)
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
allow $1 inetd_t:fd use;
|
|
Chris PeBenito |
24bf11 |
allow inetd_t $1:fd use;
|
|
Chris PeBenito |
24bf11 |
allow $1 inetd_t:fifo_file rw_file_perms;
|
|
Chris PeBenito |
24bf11 |
allow $1 inetd_t:process sigchld;
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
allow inetd_t $1:process sigkill;
|
|
Chris PeBenito |
24bf11 |
')
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
## <summary>
|
|
Chris PeBenito |
24bf11 |
## Define the specified domain as a TCP inetd service.
|
|
Chris PeBenito |
24bf11 |
## </summary>
|
|
Chris PeBenito |
24bf11 |
## <param name="domain">
|
|
Chris PeBenito |
24bf11 |
## The type associated with the inetd service process.
|
|
Chris PeBenito |
24bf11 |
## </param>
|
|
Chris PeBenito |
24bf11 |
## <param name="entrypoint">
|
|
Chris PeBenito |
24bf11 |
## The type associated with the process program.
|
|
Chris PeBenito |
24bf11 |
## </param>
|
|
Chris PeBenito |
24bf11 |
interface(`inetd_tcp_service_domain',`
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
gen_require(`
|
|
Chris PeBenito |
24bf11 |
type inetd_t;
|
|
Chris PeBenito |
24bf11 |
class tcp_socket rw_stream_socket_perms;
|
|
Chris PeBenito |
24bf11 |
')
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
inetd_core_service_domain($1,$2)
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
allow $1 inetd_t:tcp_socket rw_stream_socket_perms;
|
|
Chris PeBenito |
24bf11 |
')
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
## <summary>
|
|
Chris PeBenito |
24bf11 |
## Define the specified domain as a UDP inetd service.
|
|
Chris PeBenito |
24bf11 |
## </summary>
|
|
Chris PeBenito |
24bf11 |
## <param name="domain">
|
|
Chris PeBenito |
24bf11 |
## The type associated with the inetd service process.
|
|
Chris PeBenito |
24bf11 |
## </param>
|
|
Chris PeBenito |
24bf11 |
## <param name="entrypoint">
|
|
Chris PeBenito |
24bf11 |
## The type associated with the process program.
|
|
Chris PeBenito |
24bf11 |
## </param>
|
|
Chris PeBenito |
24bf11 |
interface(`inetd_udp_service_domain',`
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
gen_require(`
|
|
Chris PeBenito |
24bf11 |
type inetd_t;
|
|
Chris PeBenito |
24bf11 |
class udp_socket rw_socket_perms;
|
|
Chris PeBenito |
24bf11 |
')
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
inetd_core_service_domain($1,$2)
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
allow $1 inetd_t:udp_socket rw_socket_perms;
|
|
Chris PeBenito |
24bf11 |
')
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
## <summary>
|
|
Chris PeBenito |
24bf11 |
## Define the specified domain as a TCP and UDP inetd service.
|
|
Chris PeBenito |
24bf11 |
## </summary>
|
|
Chris PeBenito |
24bf11 |
## <param name="domain">
|
|
Chris PeBenito |
24bf11 |
## The type associated with the inetd service process.
|
|
Chris PeBenito |
24bf11 |
## </param>
|
|
Chris PeBenito |
24bf11 |
## <param name="entrypoint">
|
|
Chris PeBenito |
24bf11 |
## The type associated with the process program.
|
|
Chris PeBenito |
24bf11 |
## </param>
|
|
Chris PeBenito |
24bf11 |
interface(`inetd_service_domain',`
|
|
Chris PeBenito |
24bf11 |
gen_require(`
|
|
Chris PeBenito |
24bf11 |
type inetd_t;
|
|
Chris PeBenito |
24bf11 |
class tcp_socket rw_stream_socket_perms;
|
|
Chris PeBenito |
24bf11 |
class udp_socket rw_socket_perms;
|
|
Chris PeBenito |
24bf11 |
')
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
inetd_core_service_domain($1,$2)
|
|
Chris PeBenito |
24bf11 |
|
|
Chris PeBenito |
24bf11 |
allow $1 inetd_t:tcp_socket rw_stream_socket_perms;
|
|
Chris PeBenito |
24bf11 |
allow $1 inetd_t:udp_socket rw_socket_perms;
|
|
Chris PeBenito |
24bf11 |
')
|