Mailinglist Archive: opensuse-ja (79 mails)

< Previous Next >
Re: [opensuse-ja] clamdscan で lstat( ) failed, ERROR
  • From: Satoru Matsumoto <helios_reds@xxxxxxx>
  • Date: Tue, 11 Nov 2008 00:38:55 +0900
  • Message-id: <4918558F.5070302@xxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

松本です。

野宮 賢 / NOMIYA Masaru さんは書きました:

$ clamdscan -m 38

を実行しますと,

/home/masaru/var/Mail/virus/38: lstat() failed. ERROR

というエラーが返って来ます.

"lstat() failed" ということなので、単にパーミッションの問題ということで
はないですか?

# rcclamd status
Checking for Clam AntiVirus daemon unused
# exit
$ mkdir test
$ touch test/test.txt
$ clamdscan -m test/
connect(): No such file or directory
WARNING: Can't connect to clamd.
$ clamscan -m test/
test/test.txt: Empty file

- ----------- SCAN SUMMARY -----------
Known viruses: 458604
Engine version: 0.94
Scanned directories: 1
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Time: 3.529 sec (0 m 3 s)

…という感じで、clamdscan は clamd が動いていないと実行できないのに対し、
clamscan はユーザ権限で実行できます。

ちゃんとソース覗いていないんで当てずっぽうだったりしますが、clamdscan の
場合は clamd を呼び出して - つまり、vscan ユーザ権限で - スキャンを実行
しているので当該ファイルを読み込めないのに対し、clamscan の場合はコマン
ド実行ユーザの権限でスキャンしているから読み込めている、と。

# そんなことは既に確認した上でのポストだったらすいません。(^ ^;)

- --
□●□ _/_/_/ To be Happy! _/_/_/
□□● _/_/ Satoru Matsumoto _/_/
●●● _/ helios_reds@xxxxxxx _/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAkkYVY4ACgkQXnHIfHE6+z2AfwCfZ27u9HSwt9sfnVIkWdSYKE+M
M3YAn3DHi58h7FDd4U1T45QiuN3oAE6v
=hVZA
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse-ja+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-ja+help@xxxxxxxxxxxx

< Previous Next >