|
Chris PeBenito |
6bf8bf |
## <summary>Exim mail transfer agent</summary>
|
|
Chris PeBenito |
6bf8bf |
|
|
Chris PeBenito |
6bf8bf |
########################################
|
|
Chris PeBenito |
6bf8bf |
## <summary>
|
|
Chris PeBenito |
6bf8bf |
## Execute a domain transition to run exim.
|
|
Chris PeBenito |
6bf8bf |
## </summary>
|
|
Chris PeBenito |
6bf8bf |
## <param name="domain">
|
|
Chris PeBenito |
6bf8bf |
## <summary>
|
|
Chris PeBenito |
6bf8bf |
## Domain allowed to transition.
|
|
Chris PeBenito |
6bf8bf |
## </summary>
|
|
Chris PeBenito |
6bf8bf |
## </param>
|
|
Chris PeBenito |
6bf8bf |
#
|
|
Chris PeBenito |
6bf8bf |
interface(`exim_domtrans',`
|
|
Chris PeBenito |
6bf8bf |
gen_require(`
|
|
Chris PeBenito |
6bf8bf |
type exim_t, exim_exec_t;
|
|
Chris PeBenito |
6bf8bf |
')
|
|
Chris PeBenito |
6bf8bf |
|
|
Chris PeBenito |
6bf8bf |
domtrans_pattern($1, exim_exec_t, exim_t)
|
|
Chris PeBenito |
6bf8bf |
')
|
|
Chris PeBenito |
6bf8bf |
|
|
Chris PeBenito |
6bf8bf |
########################################
|
|
Chris PeBenito |
6bf8bf |
## <summary>
|
|
Chris PeBenito |
6bf8bf |
## Do not audit attempts to read,
|
|
Chris PeBenito |
6bf8bf |
## exim tmp files
|
|
Chris PeBenito |
6bf8bf |
## </summary>
|
|
Chris PeBenito |
6bf8bf |
## <param name="domain">
|
|
Chris PeBenito |
6bf8bf |
## <summary>
|
|
Chris PeBenito |
6bf8bf |
## Domain to not audit.
|
|
Chris PeBenito |
6bf8bf |
## </summary>
|
|
Chris PeBenito |
6bf8bf |
## </param>
|
|
Chris PeBenito |
6bf8bf |
#
|
|
Chris PeBenito |
6bf8bf |
interface(`exim_dontaudit_read_tmp_files',`
|
|
Chris PeBenito |
6bf8bf |
gen_require(`
|
|
Chris PeBenito |
6bf8bf |
type exim_tmp_t;
|
|
Chris PeBenito |
6bf8bf |
')
|
|
Chris PeBenito |
6bf8bf |
|
|
Chris PeBenito |
6bf8bf |
dontaudit $1 exim_tmp_t:file read_file_perms;
|
|
Chris PeBenito |
6bf8bf |
')
|
|
Chris PeBenito |
6bf8bf |
|
|
Chris PeBenito |
6bf8bf |
########################################
|
|
Chris PeBenito |
6bf8bf |
## <summary>
|
|
Chris PeBenito |
6bf8bf |
## Allow domain to read, exim tmp files
|
|
Chris PeBenito |
6bf8bf |
## </summary>
|
|
Chris PeBenito |
6bf8bf |
## <param name="domain">
|
|
Chris PeBenito |
6bf8bf |
## <summary>
|
|
Chris PeBenito |
6bf8bf |
## Domain to not audit.
|
|
Chris PeBenito |
6bf8bf |
## </summary>
|
|
Chris PeBenito |
6bf8bf |
## </param>
|
|
Chris PeBenito |
6bf8bf |
#
|
|
Chris PeBenito |
6bf8bf |
interface(`exim_read_tmp_files',`
|
|
Chris PeBenito |
6bf8bf |
gen_require(`
|
|
Chris PeBenito |
6bf8bf |
type exim_tmp_t;
|
|
Chris PeBenito |
6bf8bf |
')
|
|
Chris PeBenito |
6bf8bf |
|
|
Chris PeBenito |
6bf8bf |
allow $1 exim_tmp_t:file read_file_perms;
|
|
Chris PeBenito |
6bf8bf |
files_search_tmp($1)
|
|
Chris PeBenito |
6bf8bf |
')
|
|
Chris PeBenito |
6bf8bf |
|
|
Chris PeBenito |
6bf8bf |
########################################
|
|
Chris PeBenito |
6bf8bf |
## <summary>
|
|
Chris PeBenito |
6bf8bf |
## Read exim PID files.
|
|
Chris PeBenito |
6bf8bf |
## </summary>
|
|
Chris PeBenito |
6bf8bf |
## <param name="domain">
|
|
Chris PeBenito |
6bf8bf |
## <summary>
|
|
Chris PeBenito |
6bf8bf |
## Domain allowed access.
|
|
Chris PeBenito |
6bf8bf |
## </summary>
|
|
Chris PeBenito |
6bf8bf |
## </param>
|
|
Chris PeBenito |
6bf8bf |
#
|
|
Chris PeBenito |
6bf8bf |
interface(`exim_read_pid_files',`
|
|
Chris PeBenito |
6bf8bf |
gen_require(`
|
|
Chris PeBenito |
6bf8bf |
type exim_var_run_t;
|
|
Chris PeBenito |
6bf8bf |
')
|
|
Chris PeBenito |
6bf8bf |
|
|
Chris PeBenito |
6bf8bf |
allow $1 exim_var_run_t:file read_file_perms;
|
|
Chris PeBenito |
6bf8bf |
files_search_pids($1)
|
|
Chris PeBenito |
6bf8bf |
')
|
|
Chris PeBenito |
6bf8bf |
|
|
Chris PeBenito |
6bf8bf |
########################################
|
|
Chris PeBenito |
6bf8bf |
## <summary>
|
|
Chris PeBenito |
6bf8bf |
## Allow the specified domain to read exim's log files.
|
|
Chris PeBenito |
6bf8bf |
## </summary>
|
|
Chris PeBenito |
6bf8bf |
## <param name="domain">
|
|
Chris PeBenito |
6bf8bf |
## <summary>
|
|
Chris PeBenito |
6bf8bf |
## Domain allowed access.
|
|
Chris PeBenito |
6bf8bf |
## </summary>
|
|
Chris PeBenito |
6bf8bf |
## </param>
|
|
Chris PeBenito |
6bf8bf |
## <rolecap/>
|
|
Chris PeBenito |
6bf8bf |
#
|
|
Chris PeBenito |
6bf8bf |
interface(`exim_read_log',`
|
|
Chris PeBenito |
6bf8bf |
gen_require(`
|
|
Chris PeBenito |
6bf8bf |
type exim_log_t;
|
|
Chris PeBenito |
6bf8bf |
')
|
|
Chris PeBenito |
6bf8bf |
|
|
Chris PeBenito |
6bf8bf |
read_files_pattern($1, exim_log_t, exim_log_t)
|
|
Chris PeBenito |
6bf8bf |
logging_search_logs($1)
|
|
Chris PeBenito |
6bf8bf |
')
|
|
Chris PeBenito |
6bf8bf |
|
|
Chris PeBenito |
6bf8bf |
########################################
|
|
Chris PeBenito |
6bf8bf |
## <summary>
|
|
Chris PeBenito |
6bf8bf |
## Allow the specified domain to append
|
|
Chris PeBenito |
6bf8bf |
## exim log files.
|
|
Chris PeBenito |
6bf8bf |
## </summary>
|
|
Chris PeBenito |
6bf8bf |
## <param name="domain">
|
|
Chris PeBenito |
6bf8bf |
## <summary>
|
|
Chris PeBenito |
6bf8bf |
## Domain allowed to transition.
|
|
Chris PeBenito |
6bf8bf |
## </summary>
|
|
Chris PeBenito |
6bf8bf |
## </param>
|
|
Chris PeBenito |
6bf8bf |
#
|
|
Chris PeBenito |
6bf8bf |
interface(`exim_append_log',`
|
|
Chris PeBenito |
6bf8bf |
gen_require(`
|
|
Chris PeBenito |
6bf8bf |
type exim_log_t;
|
|
Chris PeBenito |
6bf8bf |
')
|
|
Chris PeBenito |
6bf8bf |
|
|
Chris PeBenito |
6bf8bf |
append_files_pattern($1, exim_log_t, exim_log_t)
|
|
Chris PeBenito |
6bf8bf |
logging_search_logs($1)
|
|
Chris PeBenito |
6bf8bf |
')
|
|
Chris PeBenito |
6bf8bf |
|
|
Chris PeBenito |
6bf8bf |
########################################
|
|
Chris PeBenito |
6bf8bf |
## <summary>
|
|
Chris PeBenito |
6bf8bf |
## Read exim spool files.
|
|
Chris PeBenito |
6bf8bf |
## </summary>
|
|
Chris PeBenito |
6bf8bf |
## <param name="domain">
|
|
Chris PeBenito |
6bf8bf |
## <summary>
|
|
Chris PeBenito |
6bf8bf |
## Domain allowed access.
|
|
Chris PeBenito |
6bf8bf |
## </summary>
|
|
Chris PeBenito |
6bf8bf |
## </param>
|
|
Chris PeBenito |
6bf8bf |
#
|
|
Chris PeBenito |
6bf8bf |
interface(`exim_read_spool_files',`
|
|
Chris PeBenito |
6bf8bf |
gen_require(`
|
|
Chris PeBenito |
6bf8bf |
type exim_spool_t;
|
|
Chris PeBenito |
6bf8bf |
')
|
|
Chris PeBenito |
6bf8bf |
|
|
Chris PeBenito |
6bf8bf |
allow $1 exim_spool_t:file read_file_perms;
|
|
Chris PeBenito |
6bf8bf |
allow $1 exim_spool_t:dir list_dir_perms;
|
|
Chris PeBenito |
6bf8bf |
files_search_spool($1)
|
|
Chris PeBenito |
6bf8bf |
')
|
|
Chris PeBenito |
6bf8bf |
|
|
Chris PeBenito |
6bf8bf |
########################################
|
|
Chris PeBenito |
6bf8bf |
## <summary>
|
|
Chris PeBenito |
6bf8bf |
## Create, read, write, and delete
|
|
Chris PeBenito |
6bf8bf |
## exim spool files.
|
|
Chris PeBenito |
6bf8bf |
## </summary>
|
|
Chris PeBenito |
6bf8bf |
## <param name="domain">
|
|
Chris PeBenito |
6bf8bf |
## <summary>
|
|
Chris PeBenito |
6bf8bf |
## Domain allowed access.
|
|
Chris PeBenito |
6bf8bf |
## </summary>
|
|
Chris PeBenito |
6bf8bf |
## </param>
|
|
Chris PeBenito |
6bf8bf |
#
|
|
Chris PeBenito |
6bf8bf |
interface(`exim_manage_spool_files',`
|
|
Chris PeBenito |
6bf8bf |
gen_require(`
|
|
Chris PeBenito |
6bf8bf |
type exim_spool_t;
|
|
Chris PeBenito |
6bf8bf |
')
|
|
Chris PeBenito |
6bf8bf |
|
|
Chris PeBenito |
6bf8bf |
manage_files_pattern($1, exim_spool_t, exim_spool_t)
|
|
Chris PeBenito |
6bf8bf |
files_search_spool($1)
|
|
Chris PeBenito |
6bf8bf |
')
|