Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55119 - samba clamav vfs failures
Summary: samba clamav vfs failures
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo's SAMBA Team
URL: http://www.gentoo.org/doc/en/quick-sa...
Whiteboard:
Keywords:
Depends on: 58090
Blocks: 55121
  Show dependency tree
 
Reported: 2004-06-24 23:40 UTC by Daniel Black (RETIRED)
Modified: 2004-07-24 06:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
smb.conf (smb.conf,14.43 KB, text/plain)
2004-06-24 23:44 UTC, Daniel Black (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Black (RETIRED) gentoo-dev 2004-06-24 23:40:11 UTC
Steps:

1. emerge net-fs/samba
[ebuild   R   ] net-fs/samba-3.0.4-r1  +acl +cups +doc -kerberos -ldap -mysql +oav +pam -postgres -python +readline -xml -xml2  0 kB

2. Setup smb.conf (attachment 1 [details]) - very similar to ref URL
 - note fixed: vfs object = /usr/lib/vfs/vscan-clamav.so
3. Add /etc/samba/vscan-clamav.conf (as per ref URL except I did a quarantine option for infected files)


started clamav and samba

on localhost (to samba server)
# smbclient -L localhost
Unknown parameter encountered: "vfs options"
Ignoring unknown parameter "vfs options"
Password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.4]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME


From log /var/log/samba/log.127.0.0.1
[2004/06/25 16:14:48, 3] smbd/vfs.c:vfs_init_default(203)
  Initialising default vfs hooks
[2004/06/25 16:14:48, 3] smbd/vfs.c:vfs_init_custom(229)
  Initialising custom vfs hooks from [/usr/lib/vfs/vscan-clamav.so]
[2004/06/25 16:14:48, 2] lib/module.c:do_smb_load_module(63)
  Module '/usr/lib/vfs/vscan-clamav.so' loaded
[2004/06/25 16:14:48, 0] smbd/vfs.c:vfs_init_custom(256)
  Can't find a vfs module [/usr/lib/vfs/vscan-clamav.so]
[2004/06/25 16:14:48, 0] smbd/vfs.c:smbd_vfs_init(319)
  smbd_vfs_init: vfs_init_custom failed for /usr/lib/vfs/vscan-clamav.so
[2004/06/25 16:14:48, 0] smbd/service.c:make_connection_snum(502)
  vfs_init failed for service IPC$
[2004/06/25 16:14:48, 3] smbd/error.c:error_packet(118)
  error packet at smbd/reply.c(389) cmd=117 (SMBtconX) NT_STATUS_BAD_NETWORK_NAME
[2004/06/25 16:14:48, 3] smbd/process.c:timeout_processing(1104)
  timeout_processing: End of file from client (client has disconnected).
[2004/06/25 16:14:48, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0

Commenting out the vfs options works fine.
Comment 1 Daniel Black (RETIRED) gentoo-dev 2004-06-24 23:44:49 UTC
Created attachment 34111 [details]
smb.conf
Comment 2 Christian Andreetta (RETIRED) gentoo-dev 2004-07-15 05:15:44 UTC
strange: "vfs options" was officially removed from configuration options during the latest releases of samba-3.0.x. But this should not give the error NT_STATUS_BAD_NETWORK_NAME: could you try to compile with minimal CFLAGS? like -O1, or so: there are similar issues on ppc{32,64} and sparc that could be solved lowering compilation flags.
Comment 3 Christian Andreetta (RETIRED) gentoo-dev 2004-07-24 02:48:07 UTC
if you have time to spare, can you try samba-3.0.5-r1? Libs change: from /usr/lib/vfs to /usr/lib/samba/vfs. Compiler flags lowering.
I'm opening a forum on its refinig on bug #58090
Comment 4 Daniel Black (RETIRED) gentoo-dev 2004-07-24 06:32:43 UTC
Starting to think this bug is INVALID. In step 2 I've put a full path on /usr/lib.... The gentoo URL (and man 5 smb.conf etc...) all suggest that only "vfs object = vscan-clamav" is needed. I've changed to the right way and the vfs clamav seems to be initialising itself. And no errors.

Sorry for the confusion.

I'm not convinced "vfs options" is removed. Looking at /usr/share/doc/samba-3.0.5-r1/WHATSNEW.txt.gz

Line 1514 says its removed.
Line 1567 says its added in version 3.
Its still in the documentation http://au1.samba.org/samba/docs/man/smb.conf.5.html

That and it works.

# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[home]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[FaxModem]"
Processing section "[Web]"
Processing section "[portage]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
        server string = Samba Server %v
        interfaces = lo, eth0
        bind interfaces only = Yes
        guest account = samba
        username map = /etc/samba/smbusers
        log level = 3
        log file = /var/log/samba/log.%m
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        dns proxy = No
        remote announce = 10.10.10.0/64
        vscan-clamav:config-file = /etc/samba/vscan-clamav.conf
        printer admin = @adm
        guest ok = Yes
        hosts allow = 127.0.0.1, 10.10.10.0/24
        hosts deny = 0.0.0.0/0
        vfs objects = vscan-clamav

[home]
        comment = Home Directories
        path = /home
        valid users = @users
        read only = No
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        print command = lpr -P %p -o raw %s -r   # using client side printer drivers.
        browseable = No

[print$]
        path = /etc//samba/printers
        write list = @adm
        guest ok = No

[FaxModem]
        comment = FaxModem - not setup yet
        path = /var/spool/samba
        printable = Yes

[Web]
        comment = Web Pages
        path = /var/www
        write list = nulus, dan, @users

[portage]
        path = /usr/portage
        guest only = Yes