Merge pull request #351 from 0xC0ncord/feature/postfix_dovecot_backend

This commit is contained in:
Chris PeBenito 2021-02-03 13:05:27 -05:00
commit a7ac056982
2 changed files with 24 additions and 0 deletions

View File

@ -61,6 +61,28 @@ interface(`dovecot_domtrans_deliver',`
domtrans_pattern($1, dovecot_deliver_exec_t, dovecot_deliver_t)
')
########################################
## <summary>
## Read dovecot configuration content.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`dovecot_read_config',`
gen_require(`
type dovecot_etc_t;
')
files_search_etc($1)
allow $1 dovecot_etc_t:dir list_dir_perms;
allow $1 dovecot_etc_t:file read_file_perms;
allow $1 dovecot_etc_t:lnk_file read_lnk_file_perms;
')
########################################
## <summary>
## Create, read, write, and delete

View File

@ -596,6 +596,8 @@ corecmd_exec_bin(postfix_pipe_t)
optional_policy(`
dovecot_domtrans_deliver(postfix_pipe_t)
dovecot_read_config(postfix_pipe_t)
dovecot_stream_connect(postfix_pipe_t)
')
optional_policy(`