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 fe9d17
##	Domain allowed access.
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
	')
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 6f81e1
##	Send generic signals to BIND.
Chris PeBenito 6f81e1
## </summary>
Chris PeBenito 6f81e1
## <param name="domain">
Chris PeBenito 6f81e1
##	Domain allowed access.
Chris PeBenito 6f81e1
## </param>
Chris PeBenito 6f81e1
#
Chris PeBenito 6f81e1
interface(`bind_signal',`
Chris PeBenito 6f81e1
	gen_require(`
Chris PeBenito 6f81e1
		type named_t;
Chris PeBenito 6f81e1
	')
Chris PeBenito 6f81e1
Chris PeBenito 6f81e1
	allow $1 named_t:process signal;
Chris PeBenito 6f81e1
')
Chris PeBenito 6f81e1
Chris PeBenito 6f81e1
########################################
Chris PeBenito 6f81e1
## <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 fe9d17
##	Domain allowed access.
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
	')
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 fe9d17
##	Execute bind in the named domain.
Chris PeBenito fe9d17
## </summary>
Chris PeBenito fe9d17
## <param name="domain">
Chris PeBenito fe9d17
##	Domain allowed access.
Chris PeBenito fe9d17
## </param>
Chris PeBenito fe9d17
#
Chris PeBenito fe9d17
interface(`bind_domtrans',`
Chris PeBenito fe9d17
	gen_require(`
Chris PeBenito fe9d17
		type named_t, named_exec_t;
Chris PeBenito fe9d17
	')
Chris PeBenito fe9d17
Chris PeBenito fe9d17
	domain_auto_trans($1,named_exec_t,named_t)
Chris PeBenito fe9d17
Chris PeBenito fe9d17
	allow $1 named_t:fd use;
Chris PeBenito fe9d17
	allow named_t $1:fd use;
Chris PeBenito fe9d17
	allow named_t $1:fifo_file rw_file_perms;
Chris PeBenito fe9d17
	allow named_t $1:process sigchld;
Chris PeBenito fe9d17
')
Chris PeBenito fe9d17
Chris PeBenito fe9d17
########################################
Chris PeBenito fe9d17
## <summary>
Chris PeBenito 7c8fc3
##	Read DNSSEC keys.
Chris PeBenito 7c8fc3
## </summary>
Chris PeBenito 7c8fc3
## <param name="domain">
Chris PeBenito 7c8fc3
##	Domain allowed access.
Chris PeBenito 7c8fc3
## </param>
Chris PeBenito 7c8fc3
#
Chris PeBenito 7c8fc3
interface(`bind_read_dnssec_keys',`
Chris PeBenito 7c8fc3
	gen_require(`
Chris PeBenito 7c8fc3
		type named_conf_t, named_zone_t, dnssec_t;
Chris PeBenito 7c8fc3
	')
Chris PeBenito 7c8fc3
Chris PeBenito 7c8fc3
	allow $1 { named_conf_t named_zone_t }:dir search;
Chris PeBenito 7c8fc3
	allow $1 dnssec_t:file { getattr read };
Chris PeBenito 7c8fc3
')
Chris PeBenito 7c8fc3
Chris PeBenito 7c8fc3
########################################
Chris PeBenito 7c8fc3
## <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
	')
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
	')
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 98a8ea
##	Create, read, write, and delete
Chris PeBenito 98a8ea
##	BIND configuration directories.
Chris PeBenito 98a8ea
## </summary>
Chris PeBenito 98a8ea
## <param name="domain">
Chris PeBenito 98a8ea
##	Domain allowed access.
Chris PeBenito 98a8ea
## </param>
Chris PeBenito 98a8ea
#
Chris PeBenito 98a8ea
interface(`bind_manage_config_dir',`
Chris PeBenito 98a8ea
	gen_require(`
Chris PeBenito 98a8ea
		type named_conf_t;
Chris PeBenito 98a8ea
	')
Chris PeBenito 98a8ea
Chris PeBenito 98a8ea
	allow $1 named_conf_t:dir create_dir_perms;
Chris PeBenito 98a8ea
')
Chris PeBenito 98a8ea
Chris PeBenito 98a8ea
########################################
Chris PeBenito 98a8ea
## <summary>
Chris PeBenito a77e65
##	Search the BIND cache directory.
Chris PeBenito a77e65
## </summary>
Chris PeBenito a77e65
## <param name="domain">
Chris PeBenito a77e65
##	Domain allowed access.
Chris PeBenito a77e65
## </param>
Chris PeBenito a77e65
#
Chris PeBenito a77e65
interface(`bind_search_cache',`
Chris PeBenito a77e65
	gen_require(`
Chris PeBenito a225f9
		type named_conf_t, named_cache_t, named_zone_t;
Chris PeBenito a77e65
	')
Chris PeBenito a77e65
Chris PeBenito a77e65
	files_search_var($1)
Chris PeBenito a225f9
	allow $1 named_conf_t:dir search_dir_perms;
Chris PeBenito a77e65
	allow $1 named_zone_t:dir search_dir_perms;
Chris PeBenito a77e65
	allow $1 named_cache_t:dir search_dir_perms;
Chris PeBenito a77e65
')
Chris PeBenito a77e65
Chris PeBenito a77e65
########################################
Chris PeBenito a77e65
## <summary>
Chris PeBenito 6f81e1
##	Create, read, write, and delete
Chris PeBenito 6f81e1
##	BIND cache files.
Chris PeBenito 6f81e1
## </summary>
Chris PeBenito 6f81e1
## <param name="domain">
Chris PeBenito 6f81e1
##	Domain allowed access.
Chris PeBenito 6f81e1
## </param>
Chris PeBenito 6f81e1
#
Chris PeBenito 6f81e1
interface(`bind_manage_cache',`
Chris PeBenito 6f81e1
	gen_require(`
Chris PeBenito 6f81e1
		type named_cache_t, named_zone_t;
Chris PeBenito 6f81e1
	')
Chris PeBenito 6f81e1
Chris PeBenito 6f81e1
	files_search_var($1)
Chris PeBenito 6f81e1
	allow $1 named_zone_t:dir search_dir_perms;
Chris PeBenito 6f81e1
	allow $1 named_cache_t:dir rw_dir_perms;
Chris PeBenito 6f81e1
	allow $1 named_cache_t:file create_file_perms;
Chris PeBenito 6f81e1
	allow $1 named_cache_t:lnk_file create_lnk_perms;
Chris PeBenito 6f81e1
')
Chris PeBenito 6f81e1
Chris PeBenito 6f81e1
########################################
Chris PeBenito 6f81e1
## <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
	')
Chris PeBenito d83fda
Chris PeBenito d83fda
	allow $1 named_var_run_t:dir setattr;
Chris PeBenito d83fda
')
Chris PeBenito bf080a
Chris PeBenito bf080a
########################################
Chris PeBenito bf080a
## <summary>
Chris PeBenito bf080a
##	Read BIND zone files.
Chris PeBenito bf080a
## </summary>
Chris PeBenito bf080a
## <param name="domain">
Chris PeBenito bf080a
##	Domain allowed access.
Chris PeBenito bf080a
## </param>
Chris PeBenito bf080a
#
Chris PeBenito bf080a
interface(`bind_read_zone',`
Chris PeBenito bf080a
	gen_require(`
Chris PeBenito bf080a
		type named_zone_t;
Chris PeBenito bf080a
	')
Chris PeBenito bf080a
Chris PeBenito bf080a
	files_search_var($1)
Chris PeBenito bf080a
	allow $1 named_zone_t:dir search_dir_perms;
Chris PeBenito bf080a
	allow $1 named_zone_t:file r_file_perms;
Chris PeBenito bf080a
')
Chris PeBenito bf080a