postfix, sasl: allow postfix smtp daemon to read SASL keytab
Signed-off-by: Kenton Groombridge <me@concord.sh>
This commit is contained in:
parent
d38a21388f
commit
2354b4f1be
|
@ -839,6 +839,7 @@ optional_policy(`
|
|||
|
||||
optional_policy(`
|
||||
sasl_connect(postfix_smtpd_t)
|
||||
sasl_read_keytab(postfix_smtpd_t)
|
||||
')
|
||||
|
||||
optional_policy(`
|
||||
|
|
|
@ -19,6 +19,25 @@ interface(`sasl_connect',`
|
|||
stream_connect_pattern($1, saslauthd_runtime_t, saslauthd_runtime_t, saslauthd_t)
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Read SASL keytab files.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`sasl_read_keytab',`
|
||||
gen_require(`
|
||||
type saslauthd_keytab_t;
|
||||
')
|
||||
|
||||
files_search_etc($1)
|
||||
read_files_pattern($1, saslauthd_keytab_t, saslauthd_keytab_t)
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## All of the rules required to
|
||||
|
|
Loading…
Reference in New Issue