clamav/clamav-0.96.2-jitoff.patch

35 lines
1.9 KiB
Diff
Raw Normal View History

2011-06-09 18:26:55 +00:00
Index: clamav-0.97.1/etc/clamd.conf
2010-08-15 20:35:32 +00:00
===================================================================
2011-06-09 18:26:55 +00:00
--- clamav-0.97.1.orig/etc/clamd.conf
+++ clamav-0.97.1/etc/clamd.conf
@@ -469,6 +469,16 @@ Example
2010-08-15 20:35:32 +00:00
# Default: yes
#Bytecode yes
+# Bytecode mode
+#
+# This option has been set to 'ForceInterpreter' in Fedora due to
+# security concerns by default. You might need to enable the
+# 'clamd_use_jit' SELinux boolean after setting this option to the
+# more efficient 'ForceJIT' value.
+#
+# Default: ForceInterpreter
+#ByteCodeMode ForceInterpreter
+
# Set bytecode security level.
# Possible values:
# None - no security at all, meant for debugging. DO NOT USE THIS ON PRODUCTION SYSTEMS
2011-06-09 18:26:55 +00:00
Index: clamav-0.97.1/shared/optparser.c
2010-08-15 20:35:32 +00:00
===================================================================
2011-06-09 18:26:55 +00:00
--- clamav-0.97.1.orig/shared/optparser.c
+++ clamav-0.97.1/shared/optparser.c
@@ -264,7 +264,7 @@ const struct clam_option __clam_options[
{ "BytecodeUnsigned", "bytecode-unsigned", 0, TYPE_BOOL, MATCH_BOOL, 0, NULL, 0, OPT_CLAMD | OPT_CLAMSCAN,
"Allow loading bytecode from outside digitally signed .c[lv]d files.\n","no"},
2010-08-15 20:35:32 +00:00
- { "BytecodeMode", "bytecode-mode", 0, TYPE_STRING, "^(Auto|ForceJIT|ForceInterpreter|Test)$", -1, "Auto", FLAG_REQUIRED, OPT_CLAMD | OPT_CLAMSCAN,
+ { "BytecodeMode", "bytecode-mode", 0, TYPE_STRING, "^(Auto|ForceJIT|ForceInterpreter|Test)$", -1, "ForceInterpreter", FLAG_REQUIRED, OPT_CLAMD | OPT_CLAMSCAN,
"Set bytecode execution mode.\nPossible values:\n\tAuto - automatically choose JIT if possible, fallback to interpreter\nForceJIT - always choose JIT, fail if not possible\nForceIntepreter - always choose interpreter\nTest - run with both JIT and interpreter and compare results. Make all failures fatal\n","Auto"},
2011-06-09 18:26:55 +00:00
{ "DetectPUA", "detect-pua", 0, TYPE_BOOL, MATCH_BOOL, 0, NULL, 0, OPT_CLAMD | OPT_CLAMSCAN, "Detect Potentially Unwanted Applications.", "yes" },