|
Chris PeBenito |
17de1b |
## <summary>Postfix grey-listing server</summary>
|
|
Chris PeBenito |
465510 |
|
|
Chris PeBenito |
465510 |
########################################
|
|
Chris PeBenito |
465510 |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Write to postgrey socket
|
|
Chris PeBenito |
465510 |
## </summary>
|
|
Chris PeBenito |
465510 |
## <param name="domain">
|
|
Chris PeBenito |
ff8f0a |
## <summary>
|
|
Dominick Grift |
288845 |
## Domain allowed access.
|
|
Chris PeBenito |
ff8f0a |
## </summary>
|
|
Chris PeBenito |
465510 |
## </param>
|
|
Chris PeBenito |
465510 |
#
|
|
Chris PeBenito |
465510 |
interface(`postgrey_stream_connect',`
|
|
Chris PeBenito |
6073ea |
gen_require(`
|
|
Chris PeBenito |
6073ea |
type postgrey_var_run_t, postgrey_t, postgrey_spool_t;
|
|
Chris PeBenito |
6073ea |
')
|
|
Chris PeBenito |
465510 |
|
|
Dominick Grift |
ddbd71 |
stream_connect_pattern($1, { postgrey_spool_t postgrey_var_run_t }, { postgrey_spool_t postgrey_var_run_t }, postgrey_t)
|
|
Chris PeBenito |
465510 |
files_search_pids($1)
|
|
Dominick Grift |
ddbd71 |
files_search_spool($1)
|
|
Chris PeBenito |
465510 |
')
|
|
Chris PeBenito |
5843d0 |
|
|
Chris PeBenito |
5843d0 |
########################################
|
|
Chris PeBenito |
5843d0 |
## <summary>
|
|
Chris PeBenito |
ff8f0a |
## Search the spool directory
|
|
Chris PeBenito |
5843d0 |
## </summary>
|
|
Chris PeBenito |
5843d0 |
## <param name="domain">
|
|
Chris PeBenito |
ff8f0a |
## <summary>
|
|
Dominick Grift |
288845 |
## Domain allowed access.
|
|
Chris PeBenito |
ff8f0a |
## </summary>
|
|
Chris PeBenito |
5843d0 |
## </param>
|
|
Chris PeBenito |
5843d0 |
#
|
|
Chris PeBenito |
5843d0 |
interface(`postgrey_search_spool',`
|
|
Chris PeBenito |
6073ea |
gen_require(`
|
|
Chris PeBenito |
6073ea |
type postgrey_spool_t;
|
|
Chris PeBenito |
6073ea |
')
|
|
Chris PeBenito |
5843d0 |
|
|
Dominick Grift |
ddbd71 |
files_search_spool($1)
|
|
Chris PeBenito |
5843d0 |
allow $1 postgrey_spool_t:dir search_dir_perms;
|
|
Chris PeBenito |
5843d0 |
')
|
|
Chris PeBenito |
5843d0 |
|
|
Chris PeBenito |
5843d0 |
########################################
|
|
Chris PeBenito |
5843d0 |
## <summary>
|
|
Chris PeBenito |
5843d0 |
## All of the rules required to administrate
|
|
Chris PeBenito |
5843d0 |
## an postgrey environment
|
|
Chris PeBenito |
5843d0 |
## </summary>
|
|
Chris PeBenito |
5843d0 |
## <param name="domain">
|
|
Chris PeBenito |
5843d0 |
## <summary>
|
|
Chris PeBenito |
5843d0 |
## Domain allowed access.
|
|
Chris PeBenito |
5843d0 |
## </summary>
|
|
Chris PeBenito |
5843d0 |
## </param>
|
|
Chris PeBenito |
5843d0 |
## <param name="role">
|
|
Chris PeBenito |
5843d0 |
## <summary>
|
|
Chris PeBenito |
5843d0 |
## The role to be allowed to manage the postgrey domain.
|
|
Chris PeBenito |
5843d0 |
## </summary>
|
|
Chris PeBenito |
5843d0 |
## </param>
|
|
Chris PeBenito |
5843d0 |
## <rolecap/>
|
|
Chris PeBenito |
5843d0 |
#
|
|
Chris PeBenito |
5843d0 |
interface(`postgrey_admin',`
|
|
Chris PeBenito |
5843d0 |
gen_require(`
|
|
Dominick Grift |
2528a2 |
type postgrey_t, postgrey_etc_t, postgrey_initrc_exec_t;
|
|
Chris PeBenito |
5843d0 |
type postgrey_var_lib_t, postgrey_var_run_t;
|
|
Chris PeBenito |
5843d0 |
')
|
|
Chris PeBenito |
5843d0 |
|
|
Chris PeBenito |
5843d0 |
allow $1 postgrey_t:process { ptrace signal_perms };
|
|
Chris PeBenito |
5843d0 |
ps_process_pattern($1, postgrey_t)
|
|
Chris PeBenito |
5843d0 |
|
|
Chris PeBenito |
5843d0 |
init_labeled_script_domtrans($1, postgrey_initrc_exec_t)
|
|
Chris PeBenito |
5843d0 |
domain_system_change_exemption($1)
|
|
Chris PeBenito |
5843d0 |
role_transition $2 postgrey_initrc_exec_t system_r;
|
|
Chris PeBenito |
5843d0 |
allow $2 system_r;
|
|
Chris PeBenito |
5843d0 |
|
|
Chris PeBenito |
5843d0 |
files_list_etc($1)
|
|
Chris PeBenito |
5843d0 |
admin_pattern($1, postgrey_etc_t)
|
|
Chris PeBenito |
5843d0 |
|
|
Chris PeBenito |
5843d0 |
files_list_var_lib($1)
|
|
Chris PeBenito |
5843d0 |
admin_pattern($1, postgrey_var_lib_t)
|
|
Chris PeBenito |
5843d0 |
|
|
Chris PeBenito |
5843d0 |
files_list_pids($1)
|
|
Chris PeBenito |
5843d0 |
admin_pattern($1, postgrey_var_run_t)
|
|
Chris PeBenito |
5843d0 |
')
|