problems with VFS interface / audit.c example

Sean E. Millichamp sean at compu-aid.com
Fri Apr 5 07:01:01 GMT 2002


I have Samba 2.2.3a on Red Hat Linux 7.2

I was trying to use the example VFS module audit.c to actually audit the
activity on a fileshare.  I recompiled Samba with --with-vfs and compiled 
the audit.c module.

When I put the "vfs object = /path/to/audit" line in a share (homes, in 
this case) I got the following error messages:

[2002/04/04 21:32:16, 0] smbd/vfs.c:vfs_init_custom(121) 
  Error opening /usr/lib/samba/audit.so: /usr/lib/samba/audit.so: undefined symbol: default_vfs_ops 
[2002/04/04 21:32:16, 0] smbd/vfs.c:vfs_init(284) 
  vfs_init: vfs_init_custom failed 
[2002/04/04 21:32:16, 0] smbd/service.c:make_connection(541) 
  vfs_init failed for service sean 

audit.so is 755 so I looked into the source and found default_vfs_ops in 
the VFS example files and in the source/smbd/vfs.c file.  

It looks like default_vfs_ops is used in a similar fashion in the three
examples in examples/VFS so I am confused.  Are there any known problems 
with the VFS interface?  It "looks right" to me but I'm not much of a C 
programmer :).

Does anyone have any suggestions on how I might fix this?

Thanks,
Sean

-- 
 Sean E. Millichamp, Network & Systems Engineer
 Compu-Aid/Enertron





More information about the samba-technical mailing list