From 6075ab79ae82be01a94a421c81da316fa55e1f99 Mon Sep 17 00:00:00 2001 From: Holger Hetterich Date: Mon, 15 Feb 2010 20:49:58 +0100 Subject: [PATCH] s3: vfs_full_audit.c: support negated vfs functions in the success list Supports negated arguments in configuration like: full_audit:success = all !readdir !telldir !closedir Part of BSO#4025 --- source3/modules/vfs_full_audit.c | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c index 19ac7ad..9f4d44d 100644 --- a/source3/modules/vfs_full_audit.c +++ b/source3/modules/vfs_full_audit.c @@ -433,8 +433,9 @@ static bool log_failure(vfs_handle_struct *handle, vfs_op_type op) static void init_bitmap(struct bitmap **bm, const char **ops) { + int i; bool log_all = False; - + bool negated_ops = False; if (*bm != NULL) return; @@ -447,9 +448,14 @@ static void init_bitmap(struct bitmap **bm, const char **ops) } while (*ops != NULL) { - int i; bool found = False; + if (*ops[0] == '!' && negated_ops == False) { + for (i=0; i