1 |
commit: 81711bb3a8d8dc9b91d1fd8c9450050c5a598277 |
2 |
Author: David Sugar <dsugar <AT> tresys <DOT> com> |
3 |
AuthorDate: Fri Nov 2 19:10:20 2018 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 11 23:17:31 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=81711bb3 |
7 |
|
8 |
Allow clamd to use sent file descriptor |
9 |
|
10 |
This allows a process connecting to a local clamd server to send |
11 |
an open file descriptor for A/V scanning. This still requires |
12 |
the file type to be readable by clamd. |
13 |
|
14 |
Signed-off-by: Dave Sugar <dsugar <AT> tresys.com> |
15 |
Signed-off-by: Jason Zaman <jason <AT> perfinion.com> |
16 |
|
17 |
policy/modules/services/clamav.if | 2 ++ |
18 |
1 file changed, 2 insertions(+) |
19 |
|
20 |
diff --git a/policy/modules/services/clamav.if b/policy/modules/services/clamav.if |
21 |
index 2adb1230..7b6df49e 100644 |
22 |
--- a/policy/modules/services/clamav.if |
23 |
+++ b/policy/modules/services/clamav.if |
24 |
@@ -35,6 +35,8 @@ interface(`clamav_stream_connect',` |
25 |
type clamd_t, clamd_var_run_t; |
26 |
') |
27 |
|
28 |
+ allow clamd_t $1:fd use; |
29 |
+ |
30 |
files_search_pids($1) |
31 |
stream_connect_pattern($1, clamd_var_run_t, clamd_var_run_t, clamd_t) |
32 |
') |