From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH] Allow spamd to connect to MySQL via TCP
Date: Tue, 27 Apr 2010 09:45:41 -0400 [thread overview]
Message-ID: <1272375941.32279.244.camel@gorn> (raw)
In-Reply-To: <t2mc08242931004261148xe0c81f67la5f88a775610a67a@mail.gmail.com>
On Mon, 2010-04-26 at 13:48 -0500, Chris St. Pierre wrote:
> Currently, spamd_t is only allowed to connect to a MySQL stream --
> i.e., a local MySQL instance, not a remote one via TCP. This patch
> fixes that issue.
For completeness, something similar should also be added for postgresql.
> diff --git a/policy/modules/services/spamassassin.te
> b/policy/modules/services/spamassassin.te
> index dd49d31..210a57a 100644
> --- a/policy/modules/services/spamassassin.te
> +++ b/policy/modules/services/spamassassin.te
> @@ -412,6 +412,8 @@ optional_policy(`
> optional_policy(`
> mysql_search_db(spamd_t)
> mysql_stream_connect(spamd_t)
> + corenet_tcp_connect_mysqld_port(spamd_t)
> + corenet_sendrecv_mysqld_client_packets(spamd_t)
> ')
>
> optional_policy(`
>
--
Chris PeBenito
Tresys Technology, LLC
next prev parent reply other threads:[~2010-04-27 13:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-26 18:48 [refpolicy] [PATCH] Allow spamd to connect to MySQL via TCP Chris St. Pierre
2010-04-27 13:45 ` Christopher J. PeBenito [this message]
2010-04-27 14:14 ` Chris St. Pierre
2010-04-27 14:32 ` Christopher J. PeBenito
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1272375941.32279.244.camel@gorn \
--to=cpebenito@tresys.com \
--cc=refpolicy@oss.tresys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.