1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/examples/VFS
Jeremy Allison 7104dbd245 Set default recycle directory permissions as 0770. Unlink on rename
fail.
Jeremy.
(This used to be commit 42981c819a)
2002-03-23 20:48:45 +00:00
..
block Sync up the VFS changes from 2.2.x. 2002-03-19 02:51:48 +00:00
.cvsignore Added *.so 2000-04-05 22:42:06 +00:00
audit.c Sync up the VFS changes from 2.2.x. 2002-03-19 02:51:48 +00:00
Makefile Sync up the VFS changes from 2.2.x. 2002-03-19 02:51:48 +00:00
README Hopefully these changes will actually stick. 2000-02-04 05:08:16 +00:00
recycle.c Set default recycle directory permissions as 0770. Unlink on rename 2002-03-23 20:48:45 +00:00
skel.c Sync up the VFS changes from 2.2.x. 2002-03-19 02:51:48 +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.

The libtool program, available from your favourite GNU software
archive, is required to compile these programs.

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.