Hi,
I use samba-vscan 0.3.6c with samba-3.0.33-3.15.el5 on Red Hat 5.4.
Everything was working fine until the new update to Red Hat 5.5.
I have now samba-3.0.33-3.28.el5 and glibc-2.5-49.
I have messages errors when I try to access a file with samba:
Apr 2 13:46:26 spinel smbd_vscan-clamav[20319]: INFO: file .// was not
modified - not scanned
Apr 2 13:46:27 spinel smbd_vscan-clamav[20319]: INFO: Scanning file :
'.//Samba-HOWTO-Collection.pdf'
Apr 2 13:46:27 spinel smbd_vscan-clamav[20319]: ERROR: file
.//Samba-HOWTO-Collection.pdf not found, not readable or an error occured
Apr 2 13:46:27 spinel smbd_vscan-clamav[20319]: ERROR: daemon failed
with a minor error - access to file Samba-HOWTO-Collection.pdf denied
Apr 2 13:46:27 spinel clamd[20298]: lstat() failed on:
.//Samba-HOWTO-Collection.pdf
So I get the new source of samba-3.0.33-3.28.el5.src.rpm and I rebuild
the vscan-clamav.so.
The buiding is OK and I put it in /usr/lib64/samba/vfs.
My samba config is:
/etc/samba/smb.conf:
[homes]
/ comment = Home Directories
path = /users/%u
browseable = no
writable = yes
valid users = %S
create mask = 0644
directory mask = 0751
wide links = no
# vscan-clamav protect
vfs objects = vscan-clamav
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf/
/etc/samba/vscan-clamav.conf:
[samba-vscan]
/max file size = 0
verbose file logging = yes
scan on close = yes
deny access on error = no
deny access on minor error = yes
# deny access on minor error = no
send warning message = yes
infected file action = quarantine
quarantine prefix = vir-
max lru files entries = 100
lru file entry lifetime = 5
exclude file types =
exclude file regexp =
clamd socket name = /var/lib/clamav/clamd.socket
;scan archives = yes
libclamav max files in archive = 1000
libclamav max archived file size = 10485760
libclamav max recursion level = 5/
I have clamd ClamAV 0.95.3 with the same socket:
/LocalSocket /var/lib/clamav/clamd.socket/
and clamd daemon is running with root (not clamav user)
The clamscan is OK.
I really don't understand why vscan-clamav can't access to files with
the last Red Hat ?
Is it a problem with the new glibc ?
Is vscan-clamav again supported ?
Thank you very much for your help
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml