clamav errors

I klamav doesn’t have cut and paste so I use the command line. Can someone explain how to fix this errors? clamav should be able to read all the files to scan for viruses. Here’s a sample of the errors.

clamav -r -i

LibClamAV Error: cli_readn: read error: Input/output error
LibClamAV Error: cli_readn: read error: Invalid argument
WARNING: Can’t open file /sys/devices/pci0000:00/0000:00:08.0/host0/target0:0:0/0:0:0:0/rescan
WARNING: Can’t open file /sys/bus/platform/uevent
WARNING: Can’t open file /sys/bus/platform/drivers/vesafb/uevent
WARNING: Can’t open file /sys/bus/pnp/drivers_probe
WARNING: Can’t open file /sys/class/bsg/0:0:0:0/uevent

Thanks

lv

Hi
You will find that they aren’t really files, but created for the kernel
to talk to your hardware since they are part of the /sys directory.
Have a google on “Linux Directory STructure”.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 x86 Kernel 2.6.27.7-4-default
up 9:35, 2 users, load average: 0.15, 0.20, 0.18
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.82

Also, if you are running it as a normal user you will get that.The files in question need root access to check them

Andy

lord valarian schrieb:
> Can
> someone explain how to fix this errors? clamav should be able to read
> all the files to scan for viruses. Here’s a sample of the errors.
>
> clamav -r -i
>
> LibClamAV Error: cli_readn: read error: Input/output error
> LibClamAV Error: cli_readn: read error: Invalid argument
> WARNING: Can’t open file
> /sys/devices/pci0000:00/0000:00:08.0/host0/target0:0:0/0:0:0:0/rescan
> WARNING: Can’t open file /sys/bus/platform/uevent
> WARNING: Can’t open file /sys/bus/platform/drivers/vesafb/uevent
> WARNING: Can’t open file /sys/bus/pnp/drivers_probe
> WARNING: Can’t open file /sys/class/bsg/0:0:0:0/uevent

It’s a bad idea to scan pseudo filesystems like /dev, /sys or /proc.
These aren’t real files but “magic portals” into your system, and
“reading” them might not be the activity you think it is.

HTH
T.

I see. It’s just a clamav bug that needs to be fixed. Thanks for the info. I’ll just ignore the unreadable files now.

>Also, if you are running it as a normal user you will get that. The files in question need root access to check them.

I use the console su to get to root access then switch to root dir.

lv