aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_scanners/kaspersky_av.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-31 11:25:43 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-31 11:25:43 +0000
commite9c96fdb286727b1a95b8484e7d4e2877bbc3629 (patch)
treead3884fdcb74e1e1337d6dae22318c066cd8da0c /lualib/lua_scanners/kaspersky_av.lua
parent28c372c37e8c0f68be76111bbac99996f09dbf0b (diff)
downloadrspamd-e9c96fdb286727b1a95b8484e7d4e2877bbc3629.tar.gz
rspamd-e9c96fdb286727b1a95b8484e7d4e2877bbc3629.zip
[Minor] Lua_scanners: Add more generic yield result
Diffstat (limited to 'lualib/lua_scanners/kaspersky_av.lua')
-rw-r--r--lualib/lua_scanners/kaspersky_av.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lualib/lua_scanners/kaspersky_av.lua b/lualib/lua_scanners/kaspersky_av.lua
index b55b6c24c..e903467c2 100644
--- a/lualib/lua_scanners/kaspersky_av.lua
+++ b/lualib/lua_scanners/kaspersky_av.lua
@@ -26,7 +26,7 @@ local rspamd_util = require "rspamd_util"
local rspamd_logger = require "rspamd_logger"
local common = require "lua_scanners/common"
-local N = "antivirus"
+local N = "kaspersky"
local default_message = '${SCANNER}: virus found: "${VIRUS}"'
@@ -41,6 +41,7 @@ local function kaspersky_config(opts)
retransmits = 1, -- use local files, retransmits are useless
cache_expire = 3600, -- expire redis in one hour
message = default_message,
+ detection_category = "virus",
tmpdir = '/tmp',
prefix = 'rs_ak',
}
@@ -170,7 +171,7 @@ local function kaspersky_check(task, content, digest, rule)
})
end
- if common.need_av_check(task, content, rule) then
+ if common.need_av_check(task, content, rule, N) then
if common.check_av_cache(task, digest, rule, kaspersky_check_uncached, N) then
return
else