Blame policy/modules/apps/authbind.if
|
Chris PeBenito |
b6b574 |
## <summary>Tool for non-root processes to bind to reserved ports</summary>
|
|
Chris PeBenito |
b6b574 |
|
|
Chris PeBenito |
b6b574 |
########################################
|
|
Chris PeBenito |
b6b574 |
## <summary>
|
|
Chris PeBenito |
b6b574 |
## Use authbind to bind to a reserved port.
|
|
Chris PeBenito |
b6b574 |
## </summary>
|
|
Chris PeBenito |
b6b574 |
## <param name="domain">
|
|
Chris PeBenito |
b6b574 |
## <summary>
|
|
Chris PeBenito |
b6b574 |
## Domain allowed access.
|
|
Chris PeBenito |
b6b574 |
## </summary>
|
|
Chris PeBenito |
b6b574 |
## </param>
|
|
Chris PeBenito |
b6b574 |
#
|
|
Chris PeBenito |
b6b574 |
interface(`authbind_domtrans',`
|
|
Chris PeBenito |
b6b574 |
gen_require(`
|
|
Chris PeBenito |
b6b574 |
type authbind_t, authbind_exec_t;
|
|
Chris PeBenito |
b6b574 |
')
|
|
Chris PeBenito |
b6b574 |
|
|
Chris PeBenito |
b6b574 |
domain_auto_trans($1,authbind_exec_t,authbind_t)
|
|
Chris PeBenito |
b6b574 |
allow authbind_t $1:fd use;
|
|
Chris PeBenito |
b6b574 |
allow authbind_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
b6b574 |
allow authbind_t $1:process sigchld;
|
|
Chris PeBenito |
b6b574 |
allow authbind_t $1:{ tcp_socket udp_socket } rw_socket_perms;
|
|
Chris PeBenito |
b6b574 |
')
|