Add networking rules for spamd to connect to mysql/postgresql over the network, from Chris St. Pierre.

This commit is contained in:
Chris PeBenito 2010-04-27 10:31:47 -04:00
parent 45696ab282
commit 87a9469fc9

View File

@ -1,5 +1,5 @@
policy_module(spamassassin, 2.2.0) policy_module(spamassassin, 2.2.1)
######################################## ########################################
# #
@ -410,6 +410,9 @@ optional_policy(`
') ')
optional_policy(` optional_policy(`
corenet_tcp_connect_mysqld_port(spamd_t)
corenet_sendrecv_mysqld_client_packets(spamd_t)
mysql_search_db(spamd_t) mysql_search_db(spamd_t)
mysql_stream_connect(spamd_t) mysql_stream_connect(spamd_t)
') ')
@ -423,6 +426,9 @@ optional_policy(`
') ')
optional_policy(` optional_policy(`
corenet_tcp_connect_postgresql_port(spamd_t)
corenet_sendrecv_postgresql_client_packets(spamd_t)
postgresql_stream_connect(spamd_t) postgresql_stream_connect(spamd_t)
') ')