git-svn: trunk@4550
Tomasz Kojm authored on 2008/12/11 04:02:40... | ... |
@@ -247,7 +247,7 @@ static int chkflevel(const char *entry, int field) |
247 | 247 |
return 0; |
248 | 248 |
} |
249 | 249 |
|
250 |
- if((unsigned int) atoi(pt) > cl_retflevel()) { |
|
250 |
+ if((unsigned int) atoi(pt) > CL_FLEVEL_DCONF) { |
|
251 | 251 |
free(pt); |
252 | 252 |
return 0; |
253 | 253 |
} |
... | ... |
@@ -260,7 +260,7 @@ static int chkflevel(const char *entry, int field) |
260 | 260 |
return 0; |
261 | 261 |
} |
262 | 262 |
|
263 |
- if((unsigned int) atoi(pt) < cl_retflevel()) { |
|
263 |
+ if((unsigned int) atoi(pt) < CL_FLEVEL_DCONF) { |
|
264 | 264 |
free(pt); |
265 | 265 |
return 0; |
266 | 266 |
} |
... | ... |
@@ -35,6 +35,18 @@ |
35 | 35 |
#include "dconf.h" |
36 | 36 |
#include "libclamunrar_iface/unrar_iface.h" |
37 | 37 |
|
38 |
+/* |
|
39 |
+ * CL_FLEVEL is the signature f-level specific to the current code and |
|
40 |
+ * should never be modified |
|
41 |
+ * CL_FLEVEL_DCONF is used in the dconf module and can be bumped by |
|
42 |
+ * distribution packagers provided they fix *all* security issues found |
|
43 |
+ * in the old versions of ClamAV. Updating CL_FLEVEL_DCONF will result |
|
44 |
+ * in re-enabling affected modules. |
|
45 |
+ */ |
|
46 |
+ |
|
47 |
+#define CL_FLEVEL 38 |
|
48 |
+#define CL_FLEVEL_DCONF CL_FLEVEL |
|
49 |
+ |
|
38 | 50 |
extern uint8_t cli_debug_flag; |
39 | 51 |
|
40 | 52 |
/* |