selinux-policy/policy/modules/apps/authbind.if
2006-07-12 20:32:27 +00:00

24 lines
599 B
Plaintext

## <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;
')
domain_auto_trans($1,authbind_exec_t,authbind_t)
allow authbind_t $1:fd use;
allow authbind_t $1:fifo_file rw_file_perms;
allow authbind_t $1:process sigchld;
allow authbind_t $1:{ tcp_socket udp_socket } rw_socket_perms;
')