2006-01-16 18:30:14 +00:00
|
|
|
## <summary>ucspitcp policy</summary>
|
|
|
|
## <desc>
|
2008-07-23 21:38:39 +00:00
|
|
|
## <p>
|
|
|
|
## Policy for DJB's ucspi-tcpd
|
|
|
|
## </p>
|
2006-01-16 18:30:14 +00:00
|
|
|
## </desc>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Define a specified domain as a ucspitcp service.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2006-01-16 18:30:14 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2006-01-16 18:30:14 +00:00
|
|
|
## </param>
|
|
|
|
## <param name="entrypoint">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2006-01-16 18:30:14 +00:00
|
|
|
## The type associated with the process program.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2006-01-16 18:30:14 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`ucspitcp_service_domain', `
|
|
|
|
gen_require(`
|
|
|
|
type ucspitcp_t;
|
|
|
|
role system_r;
|
|
|
|
')
|
|
|
|
|
|
|
|
domain_type($1)
|
2008-07-23 21:38:39 +00:00
|
|
|
domain_entry_file($1, $2)
|
2006-01-16 18:30:14 +00:00
|
|
|
|
|
|
|
role system_r types $1;
|
|
|
|
|
|
|
|
domain_auto_trans(ucspitcp_t, $2, $1)
|
|
|
|
allow $1 ucspitcp_t:fd use;
|
|
|
|
allow $1 ucspitcp_t:process sigchld;
|
|
|
|
allow $1 ucspitcp_t:tcp_socket rw_stream_socket_perms;
|
|
|
|
')
|