|
Chris PeBenito |
17de1b |
## <summary>Internet News NNTP server</summary>
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Allow the specified domain to execute innd
|
|
Chris PeBenito |
17de1b |
## in the caller domain.
|
|
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(`inn_exec',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type innd_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
can_exec($1, innd_exec_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Allow the specified domain to execute
|
|
Chris PeBenito |
17de1b |
## inn configuration files in /etc.
|
|
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(`inn_exec_config',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type innd_etc_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
can_exec($1, innd_etc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Create, read, write, and delete the innd log.
|
|
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(`inn_manage_log',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type innd_log_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_rw_generic_log_dirs($1)
|
|
Chris PeBenito |
e87221 |
manage_files_pattern($1, innd_log_t, innd_log_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Create, read, write, and delete the innd pid 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(`inn_manage_pid',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type innd_var_run_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_search_pids($1)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern($1, innd_var_run_t, innd_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_lnk_files_pattern($1, innd_var_run_t, innd_var_run_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Read innd 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 |
bbcd3c |
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`inn_read_config',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type innd_etc_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
82d277 |
allow $1 innd_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
82d277 |
allow $1 innd_etc_t:file read_file_perms;
|
|
Chris PeBenito |
82d277 |
allow $1 innd_etc_t:lnk_file read_lnk_file_perms;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Read innd news library 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(`inn_read_news_lib',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type innd_var_lib_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
82d277 |
allow $1 innd_var_lib_t:dir list_dir_perms;
|
|
Chris PeBenito |
82d277 |
allow $1 innd_var_lib_t:file read_file_perms;
|
|
Chris PeBenito |
82d277 |
allow $1 innd_var_lib_t:lnk_file read_lnk_file_perms;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Read innd news library 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(`inn_read_news_spool',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type news_spool_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
82d277 |
allow $1 news_spool_t:dir list_dir_perms;
|
|
Chris PeBenito |
82d277 |
allow $1 news_spool_t:file read_file_perms;
|
|
Chris PeBenito |
82d277 |
allow $1 news_spool_t:lnk_file read_lnk_file_perms;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Send to a innd unix dgram socket.
|
|
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(`inn_dgram_send',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type innd_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow $1 innd_t:unix_dgram_socket sendto;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Execute inn in the inn 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(`inn_domtrans',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type innd_t, innd_exec_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_search_bin($1)
|
|
Chris PeBenito |
0bfccd |
domtrans_pattern($1, innd_exec_t, innd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
########################################
|
|
Chris PeBenito |
e87221 |
## <summary>
|
|
Chris PeBenito |
e87221 |
## All of the rules required to administrate
|
|
Chris PeBenito |
e87221 |
## an inn environment
|
|
Chris PeBenito |
e87221 |
## </summary>
|
|
Chris PeBenito |
e87221 |
## <param name="domain">
|
|
Chris PeBenito |
e87221 |
## <summary>
|
|
Chris PeBenito |
e87221 |
## Domain allowed access.
|
|
Chris PeBenito |
e87221 |
## </summary>
|
|
Chris PeBenito |
e87221 |
## </param>
|
|
Chris PeBenito |
e87221 |
## <param name="role">
|
|
Chris PeBenito |
e87221 |
## <summary>
|
|
Chris PeBenito |
e87221 |
## The role to be allowed to manage the inn domain.
|
|
Chris PeBenito |
e87221 |
## </summary>
|
|
Chris PeBenito |
e87221 |
## </param>
|
|
Chris PeBenito |
e87221 |
## <rolecap/>
|
|
Chris PeBenito |
e87221 |
#
|
|
Chris PeBenito |
e87221 |
interface(`inn_admin',`
|
|
Chris PeBenito |
e87221 |
gen_require(`
|
|
Chris PeBenito |
e87221 |
type innd_t, innd_etc_t, innd_log_t;
|
|
Chris PeBenito |
e87221 |
type news_spool_t, innd_var_lib_t;
|
|
Chris PeBenito |
e87221 |
type innd_var_run_t, innd_initrc_exec_t;
|
|
Chris PeBenito |
e87221 |
')
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
allow $1 innd_t:process { ptrace signal_perms };
|
|
Chris PeBenito |
e87221 |
ps_process_pattern($1, innd_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
init_labeled_script_domtrans($1, innd_initrc_exec_t)
|
|
Chris PeBenito |
e87221 |
domain_system_change_exemption($1)
|
|
Chris PeBenito |
e87221 |
role_transition $2 innd_initrc_exec_t system_r;
|
|
Chris PeBenito |
e87221 |
allow $2 system_r;
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
files_list_etc($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, innd_etc_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
logging_list_logs($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, innd_log_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
files_list_var_lib($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, innd_var_lib_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
files_list_pids($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, innd_var_run_t)
|
|
Chris PeBenito |
e87221 |
|
|
Chris PeBenito |
e87221 |
files_list_spool($1)
|
|
Chris PeBenito |
e87221 |
admin_pattern($1, news_spool_t)
|
|
Chris PeBenito |
e87221 |
')
|