[Samba] vfs_virusfilter
Stefan Kania
stefan at kania-online.de
Sat Mar 13 16:24:01 UTC 2021
Hello,
I'm tying to get the virusfilter running inside a share. I use samba
4.14 on Debian 10 and ClamAV as scan-engine. Testing clamav on the
commandline works fine, the EICAR-Testfile was found and quarantined or
remeved. So I set up the following two shares:
-----------
[abteilungen]
path = /admin-share/abteilungen
comment = Abteilungsverzeichnisse
vfs objects = acl_xattr virusfilter
guest ok = no
read only = no
browseable = no
virusfilter:scanner = clamav
virusfilter:infected file action = quarantine
[alle]
browseable = No
path = /admin-share/gemeinsame-daten
read only = No
vfs objects = full_audit virusfilter acl_xattr
virusfilter:infected file action = quarantine
virusfilter:scanner = clamav
full_audit:priority = NOTICE
full_audit:facility = LOCAL7
full_audit:failure = none
full_audit:success = create_file unlinkat
full_audit:prefix = |%u|%I
-------------
Because the manpage is not telling if the directory .quarantine will be
automatically created or must be created by hand, I left on share
without the directory and in the other I created the directory.
After restarting smbd (I know I don't have to). I couldn't even access
the share anymore. I saw the following error in the log.
----------
Mär 13 17:15:59 fs-01 smbd[895]: [2021/03/13 17:15:59.328597, 0]
../../source3/modules/vfs_virusfilter.c:272(virusfilter_vfs_connect)
Mär 13 17:15:59 fs-01 smbd[895]: virusfilter_vfs_connect:
virusfilter-vfs: out of memory!
Mär 13 17:15:59 fs-01 smbd[895]: [2021/03/13 17:15:59.556552, 0]
../../source3/modules/vfs_virusfilter.c:272(virusfilter_vfs_connect)
Mär 13 17:15:59 fs-01 smbd[895]: virusfilter_vfs_connect:
virusfilter-vfs: out of memory!
Mär 13 17:15:59 fs-01 smbd[895]: [2021/03/13 17:15:59.557479, 0]
../../source3/modules/vfs_virusfilter.c:272(virusfilter_vfs_connect)
Mär 13 17:15:59 fs-01 smbd[895]: virusfilter_vfs_connect:
virusfilter-vfs: out of memory!
----------
Everytime I try to connect the message shows up.
So did I do something wrong? Is it a Bug?
Anyone here running the vfs_virusfilter and share a working configuration?
Stefan
More information about the samba
mailing list