Blame policy/modules/services/ucspitcp.if
|
Chris PeBenito |
17de1b |
## <summary>ucspitcp policy</summary>
|
|
Chris PeBenito |
17de1b |
## <desc>
|
|
Chris PeBenito |
17de1b |
##
|
|
Chris PeBenito |
17de1b |
## Policy for DJB's ucspi-tcpd
|
|
Chris PeBenito |
17de1b |
##
|
|
Chris PeBenito |
17de1b |
## </desc>
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Define a specified domain as a ucspitcp service.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
## <param name="entrypoint">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## The type associated with the process program.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`ucspitcp_service_domain', `
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type ucspitcp_t;
|
|
Chris PeBenito |
17de1b |
role system_r;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_type($1)
|
|
Chris PeBenito |
17de1b |
domain_entry_file($1,$2)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
role system_r types $1;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_auto_trans(ucspitcp_t, $2, $1)
|
|
Chris PeBenito |
17de1b |
allow $1 ucspitcp_t:fd use;
|
|
Chris PeBenito |
17de1b |
allow $1 ucspitcp_t:process sigchld;
|
|
Chris PeBenito |
17de1b |
allow $1 ucspitcp_t:tcp_socket rw_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
')
|