|
Chris PeBenito |
17de1b |
## <summary>Berkeley internet name domain DNS server.</summary>
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Dominick Grift |
1031ee |
## Execute bind server in the bind domain.
|
|
Dominick Grift |
1031ee |
## </summary>
|
|
Dominick Grift |
1031ee |
## <param name="domain">
|
|
Dominick Grift |
1031ee |
## <summary>
|
|
Dominick Grift |
288845 |
## Domain allowed to transition.
|
|
Dominick Grift |
1031ee |
## </summary>
|
|
Dominick Grift |
1031ee |
## </param>
|
|
Dominick Grift |
1031ee |
#
|
|
Dominick Grift |
1031ee |
interface(`bind_initrc_domtrans',`
|
|
Dominick Grift |
1031ee |
gen_require(`
|
|
Dominick Grift |
1031ee |
type named_initrc_exec_t;
|
|
Dominick Grift |
1031ee |
')
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
init_labeled_script_domtrans($1, named_initrc_exec_t)
|
|
Dominick Grift |
1031ee |
')
|
|
Dominick Grift |
1031ee |
|
|
Dominick Grift |
1031ee |
########################################
|
|
Dominick Grift |
1031ee |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Execute ndc in the ndc domain.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Dominick Grift |
288845 |
## Domain allowed to transition.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`bind_domtrans_ndc',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type ndc_t, ndc_exec_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
domtrans_pattern($1, ndc_exec_t, ndc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Send generic signals to BIND.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`bind_signal',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type named_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow $1 named_t:process signal;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
ce6fee |
## Send null sigals to BIND.
|
|
Chris PeBenito |
ce6fee |
## </summary>
|
|
Chris PeBenito |
ce6fee |
## <param name="domain">
|
|
Chris PeBenito |
ce6fee |
## <summary>
|
|
Chris PeBenito |
ce6fee |
## Domain allowed access.
|
|
Chris PeBenito |
ce6fee |
## </summary>
|
|
Chris PeBenito |
ce6fee |
## </param>
|
|
Chris PeBenito |
ce6fee |
#
|
|
Chris PeBenito |
ce6fee |
interface(`bind_signull',`
|
|
Chris PeBenito |
ce6fee |
gen_require(`
|
|
Chris PeBenito |
ce6fee |
type named_t;
|
|
Chris PeBenito |
ce6fee |
')
|
|
Chris PeBenito |
ce6fee |
|
|
Chris PeBenito |
ce6fee |
allow $1 named_t:process signull;
|
|
Chris PeBenito |
ce6fee |
')
|
|
Chris PeBenito |
ce6fee |
|
|
Chris PeBenito |
ce6fee |
########################################
|
|
Chris PeBenito |
ce6fee |
## <summary>
|
|
Chris PeBenito |
ce6fee |
## Send BIND the kill signal
|
|
Chris PeBenito |
ce6fee |
## </summary>
|
|
Chris PeBenito |
ce6fee |
## <param name="domain">
|
|
Chris PeBenito |
ce6fee |
## <summary>
|
|
Chris PeBenito |
ce6fee |
## Domain allowed access.
|
|
Chris PeBenito |
ce6fee |
## </summary>
|
|
Chris PeBenito |
ce6fee |
## </param>
|
|
Chris PeBenito |
ce6fee |
#
|
|
Chris PeBenito |
ce6fee |
interface(`bind_kill',`
|
|
Chris PeBenito |
ce6fee |
gen_require(`
|
|
Chris PeBenito |
ce6fee |
type named_t;
|
|
Chris PeBenito |
ce6fee |
')
|
|
Chris PeBenito |
ce6fee |
|
|
Chris PeBenito |
ce6fee |
allow $1 named_t:process sigkill;
|
|
Chris PeBenito |
ce6fee |
')
|
|
Chris PeBenito |
ce6fee |
|
|
Chris PeBenito |
ce6fee |
########################################
|
|
Chris PeBenito |
ce6fee |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Execute ndc in the ndc domain, and
|
|
Chris PeBenito |
17de1b |
## allow the specified role the ndc domain.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Dominick Grift |
288845 |
## Domain allowed to transition.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
## <param name="role">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
a7ee7f |
## Role allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
bbcd3c |
## <rolecap/>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`bind_run_ndc',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type ndc_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
bind_domtrans_ndc($1)
|
|
Chris PeBenito |
17de1b |
role $2 types ndc_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Execute bind in the named domain.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Dominick Grift |
288845 |
## Domain allowed to transition.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`bind_domtrans',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type named_t, named_exec_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
domtrans_pattern($1, named_exec_t, named_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Read DNSSEC keys.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`bind_read_dnssec_keys',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type named_conf_t, named_zone_t, dnssec_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
read_files_pattern($1, { named_conf_t named_zone_t }, dnssec_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Read BIND named configuration files.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`bind_read_config',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type named_conf_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
read_files_pattern($1, named_conf_t, named_conf_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Write BIND named configuration files.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`bind_write_config',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type named_conf_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
write_files_pattern($1, named_conf_t, named_conf_t)
|
|
Dominick Grift |
9fa4de |
allow $1 named_conf_t:file setattr_file_perms;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Create, read, write, and delete
|
|
Chris PeBenito |
17de1b |
## BIND configuration directories.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`bind_manage_config_dirs',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type named_conf_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern($1, named_conf_t, named_conf_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Search the BIND cache directory.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`bind_search_cache',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type named_conf_t, named_cache_t, named_zone_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_search_var($1)
|
|
Chris PeBenito |
17de1b |
allow $1 named_conf_t:dir search_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow $1 named_zone_t:dir search_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow $1 named_cache_t:dir search_dir_perms;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Create, read, write, and delete
|
|
Chris PeBenito |
17de1b |
## BIND cache files.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`bind_manage_cache',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type named_cache_t, named_zone_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_search_var($1)
|
|
Chris PeBenito |
17de1b |
allow $1 named_zone_t:dir search_dir_perms;
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern($1, named_cache_t, named_cache_t)
|
|
Chris PeBenito |
0bfccd |
manage_lnk_files_pattern($1, named_cache_t, named_cache_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
be8311 |
## Set the attributes of the BIND pid directory.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`bind_setattr_pid_dirs',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type named_var_run_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Dominick Grift |
9fa4de |
allow $1 named_var_run_t:dir setattr_dir_perms;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
be8311 |
## Set the attributes of the BIND zone directory.
|
|
Jeremy Solt |
c37d84 |
## </summary>
|
|
Jeremy Solt |
c37d84 |
## <param name="domain">
|
|
Jeremy Solt |
c37d84 |
## <summary>
|
|
Jeremy Solt |
c37d84 |
## Domain allowed access.
|
|
Jeremy Solt |
c37d84 |
## </summary>
|
|
Jeremy Solt |
c37d84 |
## </param>
|
|
Jeremy Solt |
c37d84 |
#
|
|
Jeremy Solt |
c37d84 |
interface(`bind_setattr_zone_dirs',`
|
|
Jeremy Solt |
c37d84 |
gen_require(`
|
|
Jeremy Solt |
c37d84 |
type named_zone_t;
|
|
Jeremy Solt |
c37d84 |
')
|
|
Jeremy Solt |
c37d84 |
|
|
Dominick Grift |
9fa4de |
allow $1 named_zone_t:dir setattr_dir_perms;
|
|
Jeremy Solt |
c37d84 |
')
|
|
Jeremy Solt |
c37d84 |
|
|
Jeremy Solt |
c37d84 |
########################################
|
|
Jeremy Solt |
c37d84 |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Read BIND zone files.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`bind_read_zone',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type named_zone_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_search_var($1)
|
|
Chris PeBenito |
0bfccd |
read_files_pattern($1, named_zone_t, named_zone_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Read BIND zone files.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`bind_read_log',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type named_zone_t;
|
|
Dan Walsh |
3eaa99 |
type named_log_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
files_search_var($1)
|
|
Dan Walsh |
3eaa99 |
allow $1 named_zone_t:dir search_dir_perms;
|
|
Dan Walsh |
3eaa99 |
read_files_pattern($1, named_log_t, named_log_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Chris PeBenito |
27eab8 |
## Manage BIND zone files.
|
|
Chris PeBenito |
27eab8 |
## </summary>
|
|
Chris PeBenito |
27eab8 |
## <param name="domain">
|
|
Chris PeBenito |
27eab8 |
## <summary>
|
|
Chris PeBenito |
27eab8 |
## Domain allowed access.
|
|
Chris PeBenito |
27eab8 |
## </summary>
|
|
Chris PeBenito |
27eab8 |
## </param>
|
|
Chris PeBenito |
27eab8 |
#
|
|
Chris PeBenito |
27eab8 |
interface(`bind_manage_zone',`
|
|
Chris PeBenito |
27eab8 |
gen_require(`
|
|
Chris PeBenito |
27eab8 |
type named_zone_t;
|
|
Chris PeBenito |
27eab8 |
')
|
|
Chris PeBenito |
27eab8 |
|
|
Chris PeBenito |
27eab8 |
files_search_var($1)
|
|
Chris PeBenito |
27eab8 |
manage_files_pattern($1, named_zone_t, named_zone_t)
|
|
Chris PeBenito |
27eab8 |
')
|
|
Chris PeBenito |
27eab8 |
|
|
Chris PeBenito |
27eab8 |
########################################
|
|
Chris PeBenito |
27eab8 |
## <summary>
|
|
Chris PeBenito |
33c7e6 |
## Send and receive datagrams to and from named. (Deprecated)
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`bind_udp_chat_named',`
|
|
Chris PeBenito |
33c7e6 |
refpolicywarn(`$0($*) has been deprecated.')
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
f5394c |
|
|
Chris PeBenito |
f5394c |
########################################
|
|
Chris PeBenito |
f5394c |
## <summary>
|
|
Chris PeBenito |
be8311 |
## All of the rules required to administrate
|
|
Chris PeBenito |
f5394c |
## an bind environment
|
|
Chris PeBenito |
f5394c |
## </summary>
|
|
Chris PeBenito |
f5394c |
## <param name="domain">
|
|
Chris PeBenito |
f5394c |
## <summary>
|
|
Chris PeBenito |
f5394c |
## Domain allowed access.
|
|
Chris PeBenito |
f5394c |
## </summary>
|
|
Chris PeBenito |
f5394c |
## </param>
|
|
Chris PeBenito |
aa7c46 |
## <param name="role">
|
|
Chris PeBenito |
aa7c46 |
## <summary>
|
|
Chris PeBenito |
5843d0 |
## The role to be allowed to manage the bind domain.
|
|
Chris PeBenito |
aa7c46 |
## </summary>
|
|
Chris PeBenito |
aa7c46 |
## </param>
|
|
Chris PeBenito |
f5394c |
## <rolecap/>
|
|
Chris PeBenito |
f5394c |
#
|
|
Chris PeBenito |
f5394c |
interface(`bind_admin',`
|
|
Chris PeBenito |
f5394c |
gen_require(`
|
|
Chris PeBenito |
5843d0 |
type named_t, named_tmp_t, named_log_t;
|
|
Dominick Grift |
6bb4d4 |
type named_conf_t, named_var_run_t, named_cache_t;
|
|
Dominick Grift |
6bb4d4 |
type named_zone_t, named_initrc_exec_t;
|
|
Dan Walsh |
3eaa99 |
type dnssec_t, ndc_t, named_keytab_t;
|
|
Chris PeBenito |
f5394c |
')
|
|
Chris PeBenito |
f5394c |
|
|
Chris PeBenito |
f5394c |
allow $1 named_t:process { ptrace signal_perms };
|
|
Chris PeBenito |
f5394c |
ps_process_pattern($1, named_t)
|
|
Chris PeBenito |
2a9837 |
|
|
Chris PeBenito |
f5394c |
allow $1 ndc_t:process { ptrace signal_perms };
|
|
Chris PeBenito |
f5394c |
ps_process_pattern($1, ndc_t)
|
|
Chris PeBenito |
2a9837 |
|
|
Chris PeBenito |
5843d0 |
bind_run_ndc($1, $2)
|
|
Chris PeBenito |
5843d0 |
|
|
Jeremy Solt |
c37d84 |
init_labeled_script_domtrans($1, named_initrc_exec_t)
|
|
Chris PeBenito |
5843d0 |
domain_system_change_exemption($1)
|
|
Chris PeBenito |
5843d0 |
role_transition $2 named_initrc_exec_t system_r;
|
|
Chris PeBenito |
5843d0 |
allow $2 system_r;
|
|
Chris PeBenito |
5843d0 |
|
|
Chris PeBenito |
5843d0 |
files_list_tmp($1)
|
|
Chris PeBenito |
5843d0 |
admin_pattern($1, named_tmp_t)
|
|
Chris PeBenito |
5843d0 |
|
|
Chris PeBenito |
5843d0 |
logging_list_logs($1)
|
|
Chris PeBenito |
5843d0 |
admin_pattern($1, named_log_t)
|
|
Chris PeBenito |
5843d0 |
|
|
Chris PeBenito |
5843d0 |
files_list_etc($1)
|
|
Chris PeBenito |
5843d0 |
admin_pattern($1, named_conf_t)
|
|
Chris PeBenito |
5843d0 |
|
|
Chris PeBenito |
5843d0 |
admin_pattern($1, named_cache_t)
|
|
Chris PeBenito |
5843d0 |
admin_pattern($1, named_zone_t)
|
|
Chris PeBenito |
5843d0 |
admin_pattern($1, dnssec_t)
|
|
Chris PeBenito |
5843d0 |
|
|
Dan Walsh |
3eaa99 |
admin_pattern($1, named_keytab_t)
|
|
Chris PeBenito |
ce6fee |
|
|
Chris PeBenito |
5843d0 |
files_list_pids($1)
|
|
Chris PeBenito |
5843d0 |
admin_pattern($1, named_var_run_t)
|
|
Chris PeBenito |
f5394c |
')
|