2005-08-11 15:17:13 +00:00
|
|
|
## <summary>Policy for TCP daemon.</summary>
|
2005-09-27 22:29:45 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute tcpd in the tcpd domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2010-08-02 13:22:09 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-27 22:29:45 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`tcpd_domtrans',`
|
|
|
|
gen_require(`
|
|
|
|
type tcpd_t, tcpd_exec_t;
|
|
|
|
')
|
|
|
|
|
2007-09-17 14:33:40 +00:00
|
|
|
domtrans_pattern($1, tcpd_exec_t, tcpd_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Create a domain for services that
|
|
|
|
## utilize tcp wrappers.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Type to be used as a domain.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <param name="entry_point">
|
|
|
|
## <summary>
|
|
|
|
## Type of the program to be used as an entry point to this domain.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`tcpd_wrapped_domain',`
|
|
|
|
gen_require(`
|
|
|
|
type tcpd_t;
|
|
|
|
role system_r;
|
|
|
|
')
|
|
|
|
|
|
|
|
domtrans_pattern(tcpd_t, $2, $1)
|
|
|
|
role system_r types $1;
|
2005-09-27 22:29:45 +00:00
|
|
|
')
|