* [PATCH] Allow clamd to use sent file descriptor
@ 2018-11-02 19:10 David Sugar
2018-11-10 0:10 ` Chris PeBenito
0 siblings, 1 reply; 2+ messages in thread
From: David Sugar @ 2018-11-02 19:10 UTC (permalink / raw)
To: selinux-refpolicy
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)
')
--
2.14.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Allow clamd to use sent file descriptor
2018-11-02 19:10 [PATCH] Allow clamd to use sent file descriptor David Sugar
@ 2018-11-10 0:10 ` Chris PeBenito
0 siblings, 0 replies; 2+ messages in thread
From: Chris PeBenito @ 2018-11-10 0:10 UTC (permalink / raw)
To: David Sugar, selinux-refpolicy
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-10 0:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-02 19:10 [PATCH] Allow clamd to use sent file descriptor David Sugar
2018-11-10 0:10 ` Chris PeBenito
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).