如何确保 ClamAV 数据库是最新的? [英] How to be sure ClamAV database is up to date?

查看:13
本文介绍了如何确保 ClamAV 数据库是最新的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在 Centos 6.9 上遇到 ClamAV 和freshclam 的问题.

我有最后一个 Clam 引擎 0.99.2,并且有正常的互联网连接.即使我在 #clamscan 之前运行 #freshclam -v 命令(它只返回有关freshclam.conf 的不安全权限的安全警告),clamAV 也会返回此警告:

LibClamAV 警告:*******************************************************LibClamAV 警告:*** 病毒数据库超过 7 天.***LibClamAV 警告:*** 请立即更新!***LibClamAV 警告:*******************************************************

所以我的问题是:我怎么知道上次更新是什么时候完成的?或者确保病毒库是最新的?

PS : 我已经用 eicar 测试文件测试了 clamscan,它可以检测到它.

解决方案

你有2个问题:

  1. 我如何知道上次更新的时间?

host -t txt current.cvd.clamav.net;perl -e 'printf "%d ", time;'

这将告诉您 clamav 何时提供上次更新.

  1. 确保病毒库是最新的?

首先,您需要了解收到安全警告的原因.如果您在此处发布警告,也许我们会有更好的机会帮助您.

那么我建议你查看日志 /var/log/clamav/freshclam.log

另外,如果你启用了 selinux,你必须运行这个:setsebool -P antivirus_can_scan_system 1.如果错误是这样的During database load : LibClamAV Warning: RWX mapping denied: Can't allocate RWX Memory: Permission denied 那么显然你的解决方案就是我上面提到的命令.p>

I am currently having an issue with ClamAV and freshclam on Centos 6.9.

I have the last Clam engine 0.99.2, and a working internet connection. Even if I run the # freshclam -v command ( it only returns a security warning about unsecure permission of freshclam.conf) before a # clamscan, clamAV return me this warning :

LibClamAV Warning: ************************************************** LibClamAV Warning: *** The virus database is older than 7 days. *** LibClamAV Warning: *** Please update it IMMEDIATELY! *** LibClamAV Warning: **************************************************

So my questions are : how can I know when the last update was done ? Or make sure the virus database is up-to-date ?

PS : I've tested the clamscan with eicar test file and it detects it.

解决方案

You have 2 questions:

  1. How can I know when the last update was done ?

host -t txt current.cvd.clamav.net; perl -e 'printf "%d ", time;'

This will tell you when clamav made available the last update.

  1. Make sure the virus database is up-to-date ?

First you need to understand why you get the security warning. If you post the warning here maybe we'd have a better chance to help you.

Then I recommend you look in the log at /var/log/clamav/freshclam.log

Also, if you have selinux enabled, you'd have to run this: setsebool -P antivirus_can_scan_system 1. If by any chance the error is something like this During database load : LibClamAV Warning: RWX mapping denied: Can't allocate RWX Memory: Permission denied then clearly your solution is the command I mentioned above.

这篇关于如何确保 ClamAV 数据库是最新的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆