|
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 |
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 |
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 |
')
|