Chris PeBenito d83fda
## <summary>Berkeley internet name domain DNS server.</summary>
Chris PeBenito d83fda
Chris PeBenito d83fda
########################################
Chris PeBenito d83fda
## <summary>
Chris PeBenito d83fda
##	Execute ndc in the ndc domain.
Chris PeBenito d83fda
## </summary>
Chris PeBenito d83fda
## <param name="domain">
Chris PeBenito d83fda
##	The type of the process performing this action.
Chris PeBenito d83fda
## </param>
Chris PeBenito d83fda
#
Chris PeBenito d83fda
interface(`bind_domtrans_ndc',`
Chris PeBenito d83fda
	gen_require(`
Chris PeBenito d83fda
		type ndc_t, ndc_exec_t;
Chris PeBenito d83fda
		class process sigchld;
Chris PeBenito d83fda
		class fd use;
Chris PeBenito d83fda
		class fifo_file rw_file_perms;
Chris PeBenito d83fda
	')
Chris PeBenito d83fda
Chris PeBenito d83fda
	domain_auto_trans($1,ndc_exec_t,ndc_t)
Chris PeBenito d83fda
Chris PeBenito d83fda
	allow $1 ndc_t:fd use;
Chris PeBenito d83fda
	allow ndc_t $1:fd use;
Chris PeBenito d83fda
	allow ndc_t $1:fifo_file rw_file_perms;
Chris PeBenito d83fda
	allow ndc_t $1:process sigchld;
Chris PeBenito d83fda
')
Chris PeBenito d83fda
Chris PeBenito d83fda
########################################
Chris PeBenito d83fda
## <summary>
Chris PeBenito d83fda
##	Execute ndc in the ndc domain, and
Chris PeBenito d83fda
##	allow the specified role the ndc domain.
Chris PeBenito d83fda
## </summary>
Chris PeBenito d83fda
## <param name="domain">
Chris PeBenito d83fda
##	The type of the process performing this action.
Chris PeBenito d83fda
## </param>
Chris PeBenito d83fda
## <param name="role">
Chris PeBenito d83fda
##	The role to be allowed the bind domain.
Chris PeBenito d83fda
## </param>
Chris PeBenito d83fda
## <param name="terminal">
Chris PeBenito d83fda
##	The type of the terminal allow the bind domain to use.
Chris PeBenito d83fda
## </param>
Chris PeBenito d83fda
#
Chris PeBenito d83fda
interface(`bind_run_ndc',`
Chris PeBenito d83fda
	gen_require(`
Chris PeBenito d83fda
		type ndc_t;
Chris PeBenito d83fda
		class chr_file rw_term_perms;
Chris PeBenito d83fda
	')
Chris PeBenito d83fda
Chris PeBenito d83fda
	bind_domtrans_ndc($1)
Chris PeBenito d83fda
	role $2 types ndc_t;
Chris PeBenito d83fda
	allow ndc_t $3:chr_file rw_term_perms;
Chris PeBenito d83fda
')
Chris PeBenito d83fda
Chris PeBenito d83fda
########################################
Chris PeBenito d83fda
## <summary>
Chris PeBenito d83fda
##	Read BIND named configuration files.
Chris PeBenito d83fda
## </summary>
Chris PeBenito d83fda
## <param name="domain">
Chris PeBenito d83fda
##	Domain allowed access.
Chris PeBenito d83fda
## </param>
Chris PeBenito d83fda
#
Chris PeBenito d83fda
interface(`bind_read_config',`
Chris PeBenito d83fda
	gen_require(`
Chris PeBenito d83fda
		type named_conf_t;
Chris PeBenito d83fda
		class dir search;
Chris PeBenito d83fda
		class file { getattr read };
Chris PeBenito d83fda
	')
Chris PeBenito d83fda
Chris PeBenito d83fda
	allow $1 named_conf_t:dir search;
Chris PeBenito d83fda
	allow $1 named_conf_t:file { getattr read };
Chris PeBenito d83fda
')
Chris PeBenito d83fda
Chris PeBenito d83fda
########################################
Chris PeBenito d83fda
## <summary>
Chris PeBenito d83fda
##	Write BIND named configuration files.
Chris PeBenito d83fda
## </summary>
Chris PeBenito d83fda
## <param name="domain">
Chris PeBenito d83fda
##	Domain allowed access.
Chris PeBenito d83fda
## </param>
Chris PeBenito d83fda
#
Chris PeBenito d83fda
interface(`bind_write_config',`
Chris PeBenito d83fda
	gen_require(`
Chris PeBenito d83fda
		type named_conf_t;
Chris PeBenito d83fda
		class dir search;
Chris PeBenito d83fda
		class file { write setattr };
Chris PeBenito d83fda
	')
Chris PeBenito d83fda
Chris PeBenito d83fda
	allow $1 named_conf_t:dir search;
Chris PeBenito d83fda
	allow $1 named_conf_t:file { write setattr };
Chris PeBenito d83fda
')
Chris PeBenito d83fda
Chris PeBenito d83fda
########################################
Chris PeBenito d83fda
## <summary>
Chris PeBenito d83fda
##	Do not audit attempts to set the attributes
Chris PeBenito d83fda
##	of the BIND pid directory.
Chris PeBenito d83fda
## </summary>
Chris PeBenito d83fda
## <param name="domain">
Chris PeBenito d83fda
##	Domain allowed access.
Chris PeBenito d83fda
## </param>
Chris PeBenito d83fda
#
Chris PeBenito d83fda
interface(`bind_setattr_pid_dir',`
Chris PeBenito d83fda
	gen_require(`
Chris PeBenito d83fda
		type named_var_run_t;
Chris PeBenito d83fda
		class dir setattr;
Chris PeBenito d83fda
	')
Chris PeBenito d83fda
Chris PeBenito d83fda
	allow $1 named_var_run_t:dir setattr;
Chris PeBenito d83fda
')