Blame policy/modules/services/tcpd.if
|
Chris PeBenito |
17de1b |
## <summary>Policy for TCP daemon.</summary>
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Execute tcpd in the tcpd domain.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Dominick Grift |
288845 |
## Domain allowed to transition.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`tcpd_domtrans',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type tcpd_t, tcpd_exec_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8242f5 |
domtrans_pattern($1, tcpd_exec_t, tcpd_t)
|
|
Chris PeBenito |
8242f5 |
')
|
|
Chris PeBenito |
8242f5 |
|
|
Chris PeBenito |
8242f5 |
########################################
|
|
Chris PeBenito |
8242f5 |
## <summary>
|
|
Chris PeBenito |
8242f5 |
## Create a domain for services that
|
|
Chris PeBenito |
8242f5 |
## utilize tcp wrappers.
|
|
Chris PeBenito |
8242f5 |
## </summary>
|
|
Chris PeBenito |
8242f5 |
## <param name="domain">
|
|
Chris PeBenito |
8242f5 |
## <summary>
|
|
Chris PeBenito |
8242f5 |
## Type to be used as a domain.
|
|
Chris PeBenito |
8242f5 |
## </summary>
|
|
Chris PeBenito |
8242f5 |
## </param>
|
|
Chris PeBenito |
8242f5 |
## <param name="entry_point">
|
|
Chris PeBenito |
8242f5 |
## <summary>
|
|
Chris PeBenito |
8242f5 |
## Type of the program to be used as an entry point to this domain.
|
|
Chris PeBenito |
8242f5 |
## </summary>
|
|
Chris PeBenito |
8242f5 |
## </param>
|
|
Chris PeBenito |
8242f5 |
#
|
|
Chris PeBenito |
8242f5 |
interface(`tcpd_wrapped_domain',`
|
|
Chris PeBenito |
8242f5 |
gen_require(`
|
|
Chris PeBenito |
8242f5 |
type tcpd_t;
|
|
Chris PeBenito |
8242f5 |
role system_r;
|
|
Chris PeBenito |
8242f5 |
')
|
|
Chris PeBenito |
8242f5 |
|
|
Chris PeBenito |
8242f5 |
domtrans_pattern(tcpd_t, $2, $1)
|
|
Chris PeBenito |
8242f5 |
role system_r types $1;
|
|
Chris PeBenito |
17de1b |
')
|