clamavでエラーが大量に出る

Date 2011-9-25 23:48:01 | Topic: Linux (Sientific)

$ clamscan --infected --remove --recursive / 等とすると、大量に
LibClamAV Warning: cli_scanbzip: bzip2 support not compiled in
LibClamAV Warning: fmap_readpage: pread fail: ... が大量に出る。
初めのエラーは yum list installed bzip2 で調べるとbzip2 はインストールされている。
ググると bzilb.h がいるらしい。これはbzip2-devel(ubuntuはlibbz2らしい)に含まれている様で
# yum install bzip2-devel とし、インストールした。
再度、clamav-0.97.2.tar.gzを解凍し、
# ./configure && make && make install とインストールし直すとエラーが出なくなった。
2番目のエラーは /sys を外すといいらしい。clamscan自体はここを参考にしているので、cronで1日1回scanするが、その時スクリプトを作ってあり、その中でexclude directory の設定をしていて、そこに /proc/ /sys/ 等を記入しているので問題ない。なので
$ clamscan --exclude-dir=/sys/ --infected --remove --recursive / とすればよい。


This article comes from 錦稜会 KINRYOKAI
https://www.kinryokai.net

The URL for this story is:
https://www.kinryokai.net/article.php?storyid=103