problems with VFS interface / audit.c example
Timothee Besset
ttimo at idsoftware.com
Fri Apr 5 07:06:03 GMT 2002
Last time I checked, the CVS and tarball releases were broken as far as
VFS is concerned. I was able to patch everything to work by starting from
a tarball and applying various patches.
I have documented the process there:
http://zerowing.idsoftware.com/viewcvs/viewcvs.cgi/vfs-crlf/README?rev=HEAD&content-type=text/vnd.viewcvs-markup
regards
TTimo
On Fri, 5 Apr 2002 10:00:39 -0500 (EST)
"Sean E. Millichamp" <sean at compu-aid.com> wrote:
> 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