From: Chris PeBenito <pebenito@ieee.org>
To: David Sugar <dsugar@tresys.com>,
"selinux-refpolicy@vger.kernel.org"
<selinux-refpolicy@vger.kernel.org>
Subject: Re: [PATCH] Allow clamd to use sent file descriptor
Date: Fri, 9 Nov 2018 19:10:12 -0500 [thread overview]
Message-ID: <b9f7f085-e2ba-5153-0464-d2ee4ed9b9b7@ieee.org> (raw)
In-Reply-To: <20181102190937.5450-1-dsugar@tresys.com>
On 11/02/2018 03:10 PM, David Sugar wrote:
> This allows a process connecting to a local clamd server to send
> an open file descriptor for A/V scanning. This still requires
> the file type to be readable by clamd.
>
> Signed-off-by: Dave Sugar <dsugar@tresys.com>
> ---
> policy/modules/services/clamav.if | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/policy/modules/services/clamav.if b/policy/modules/services/clamav.if
> index 2adb1230..7b6df49e 100644
> --- a/policy/modules/services/clamav.if
> +++ b/policy/modules/services/clamav.if
> @@ -35,6 +35,8 @@ interface(`clamav_stream_connect',`
> type clamd_t, clamd_var_run_t;
> ')
>
> + allow clamd_t $1:fd use;
> +
> files_search_pids($1)
> stream_connect_pattern($1, clamd_var_run_t, clamd_var_run_t, clamd_t)
> ')
Merged.
--
Chris PeBenito
prev parent reply other threads:[~2018-11-10 0:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-02 19:10 [PATCH] Allow clamd to use sent file descriptor David Sugar
2018-11-10 0:10 ` Chris PeBenito [this message]
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=b9f7f085-e2ba-5153-0464-d2ee4ed9b9b7@ieee.org \
--to=pebenito@ieee.org \
--cc=dsugar@tresys.com \
--cc=selinux-refpolicy@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).