2006-04-27 18:11:26 +00:00
|
|
|
## <summary>Tool for non-root processes to bind to reserved ports</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Use authbind to bind to a reserved port.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`authbind_domtrans',`
|
|
|
|
gen_require(`
|
|
|
|
type authbind_t, authbind_exec_t;
|
|
|
|
')
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
domtrans_pattern($1, authbind_exec_t, authbind_t)
|
2006-04-27 18:11:26 +00:00
|
|
|
allow authbind_t $1:{ tcp_socket udp_socket } rw_socket_perms;
|
|
|
|
')
|