Gentoo Archives: gentoo-commits

From: Sven Vermeulen <sven.vermeulen@××××××.be>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/
Date: Mon, 30 Apr 2012 19:04:49
Message-Id: 1335812472.5524b9a286d7b425aa1861258d4cf99a88adab1b.SwifT@gentoo
1 commit: 5524b9a286d7b425aa1861258d4cf99a88adab1b
2 Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
3 AuthorDate: Mon Apr 30 19:01:12 2012 +0000
4 Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
5 CommitDate: Mon Apr 30 19:01:12 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=5524b9a2
7
8 Fix symbol required in clamav_append_log interface
9
10 The label of clamd's log files is clamd_var_log_t instead of
11 clamav_log_t, which in fact has not been defined by clamav.pp. If such
12 un-decleared symbol is required by the clamav_append_log interface, the
13 whole optional block that calls this interface would not be enabled as
14 expected.
15
16 Signed-off-by: Harry Ciao <qingtao.cao at windriver.com>
17
18 ---
19 policy/modules/contrib/clamav.if | 6 +++---
20 1 files changed, 3 insertions(+), 3 deletions(-)
21
22 diff --git a/policy/modules/contrib/clamav.if b/policy/modules/contrib/clamav.if
23 index cf81277..bbac14a 100644
24 --- a/policy/modules/contrib/clamav.if
25 +++ b/policy/modules/contrib/clamav.if
26 @@ -49,12 +49,12 @@ interface(`clamav_stream_connect',`
27 #
28 interface(`clamav_append_log',`
29 gen_require(`
30 - type clamav_var_log_t;
31 + type clamd_var_log_t;
32 ')
33
34 logging_search_logs($1)
35 - allow $1 clamav_var_log_t:dir list_dir_perms;
36 - append_files_pattern($1, clamav_var_log_t, clamav_var_log_t)
37 + allow $1 clamd_var_log_t:dir list_dir_perms;
38 + append_files_pattern($1, clamd_var_log_t, clamd_var_log_t)
39 ')
40
41 ########################################