clamdscan -c /etc/clamd.d/scan.conf eicar.txt
/home/dan/eicar.txt: lstat() failed: Permission denied. ERROR

It looks to be related to clamdscan performing a chroot() and the files you're referencing not being available from within that chroot. Try passing the --stream option.

-bash-4.3$ clamdscan /var/tmp/orderlist.exe
/var/tmp/orderlist.exe: lstat() failed: No such file or directory. ERROR

----------- SCAN SUMMARY -----------
Infected files: 0
Total errors: 1
Time: 0.000 sec (0 m 0 s)
-bash-4.3$ clamdscan /var/tmp/orderlist.exe --stream
/var/tmp/orderlist.exe: PUA.Win32.Packer.SetupExeSection FOUND

----------- SCAN SUMMARY -----------
Infected files: 1
Time: 0.051 sec (0 m 0 s)
-bash-4.3$ clamdscan /var/tmp/orderlist.exe --fdpass
/var/tmp/orderlist.exe: PUA.Win32.Packer.SetupExeSection FOUND

----------- SCAN SUMMARY -----------
Infected files: 1
Time: 0.042 sec (0 m 0 s)

Regards,
Dave

Reply via email to