1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/examples/VFS
Jeremy Allison 84a8efbf1a Removed C++ style comment.
Jeremy.
(This used to be commit 3803770eda)
2002-08-28 12:55:20 +00:00
..
block Removed C++ style comment. 2002-08-28 12:55:20 +00:00
netatalk add the netatalk module 2002-08-27 09:30:17 +00:00
.cvsignore Added *.so 2000-04-05 22:42:06 +00:00
audit.c OK! 2002-07-30 09:59:53 +00:00
Makefile.in avoid using libtool for VFS modules 2002-08-27 09:14:21 +00:00
README avoid using libtool for VFS modules 2002-08-27 09:14:21 +00:00
recycle.c patch from metze 2002-08-27 09:45:26 +00:00
skel.c OK! 2002-07-30 09:59:53 +00:00

README for Samba Virtual File System (VFS) Examples
===================================================

This directory contains some sample code to demonstrate VFS
construction.  The following VFS modules are given:

	skel
		A skeleton VFS module.  When used, this module simply
		passes all requests back to the disk functions (i.e it
		operates as a passthrough filter).  It should be
		useful as a starting point for developing new VFS
		modules. 

	audit
		A simple module to audit file access to the syslog
		facility.  The following operations are logged: share
		connect/disconnect, directory opens/create/remove,
		file open/close/rename/unlink/chmod.

	recycle
		A recycle-bin like modules. When used any unlink call
		will be intercepted and files moved to the recycle
		directory nstead of beeing deleted.

	block
		A simple module to block access to certain mount points or 
		directories. This module only hides the specified directories 
		and all directories beneath them. It should NOT be used to
		secure directories. If the name of a file in one of those
		directories is known, the file can still be opened.

	netatalk
		A netatalk module, that will ease co-existence of samba and
		netatalk file sharing services.
		Looka t the README for more informations.

You may have problems to compile these modules, as shared libraries are
compiled and linked in different ways on different systems.
I currently tested them against GNU/linux and IRIX.

To use the VFS modules, create a share similar to the one below.  The
important parameter is the 'vfs object' parameter which must point to
the exact pathname of the shared library object.

       [audit]
                comment = Audited /data directory
                path = /data
                vfs object = /path/to/audit.so
                writeable = yes
                browseable = yes

Further documentation on writing VFS modules for Samba can be found in
docs directory of the Samba source distribution.