summaryrefslogtreecommitdiffstats
path: root/source/modules
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-04-29 13:07:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:22 -0500
commit567f79237727a446c0e8427f18c74f00eca45c8e (patch)
tree1d9433c792fe677a62e8c0bb79c289197438ff7f /source/modules
parent9cb9c5f7c97fe8f76735a77b321c9500d28b55b2 (diff)
downloadsamba-567f79237727a446c0e8427f18c74f00eca45c8e.tar.gz
samba-567f79237727a446c0e8427f18c74f00eca45c8e.tar.xz
samba-567f79237727a446c0e8427f18c74f00eca45c8e.zip
r405: Some docs of vfs_full_audit.c as comment :-)
Diffstat (limited to 'source/modules')
-rw-r--r--source/modules/vfs_full_audit.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/source/modules/vfs_full_audit.c b/source/modules/vfs_full_audit.c
index 2371c406364..993a8ee4cbe 100644
--- a/source/modules/vfs_full_audit.c
+++ b/source/modules/vfs_full_audit.c
@@ -23,6 +23,37 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+/*
+ * This module implements parseable logging for all Samba VFS operations.
+ *
+ * You use it as follows:
+ *
+ * [tmp]
+ * path = /tmp
+ * vfs objects = full_audit
+ * full_audit:prefix = %u|%I
+ * full_audit:success = open opendir
+ * full_audit:failure = all
+ *
+ * This leads to syslog entries of the form:
+ * smbd_audit: nobody|192.168.234.1|opendir|ok|.
+ * smbd_audit: nobody|192.168.234.1|open|fail (File not found)|r|x.txt
+ *
+ * where "nobody" is the connected username and "192.168.234.1" is the
+ * client's IP address.
+ *
+ * Options:
+ *
+ * prefix: A macro expansion template prepended to the syslog entry.
+ *
+ * success: A list of VFS operations for which a successful completion should
+ * be logged. Defaults to no logging at all. The special operation "all" logs
+ * - you guessed it - everything.
+ *
+ * failure: A list of VFS operations for which failure to complete should be
+ * logged. Defaults to logging everything.
+ */
+
#include "includes.h"