summaryrefslogtreecommitdiff
path: root/source/modules
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-03-19 17:02:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:42 -0500
commitb69e18c7f167418ca364a85f1dac252f7b549e57 (patch)
tree2b3d4fb806963d7b5020f3b14185180194d596cb /source/modules
parente1fbfbe1c49d3ff1ca71a33e66fae1f2d48fb7a7 (diff)
downloadsamba-b69e18c7f167418ca364a85f1dac252f7b549e57.tar.gz
r21874: Fix missing notify function. Thanks to Thomas Bork <tombork@web.de>
for pointing this out ! Jeremy.
Diffstat (limited to 'source/modules')
-rw-r--r--source/modules/vfs_full_audit.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/source/modules/vfs_full_audit.c b/source/modules/vfs_full_audit.c
index 79a511df41d..d6794c14ff9 100644
--- a/source/modules/vfs_full_audit.c
+++ b/source/modules/vfs_full_audit.c
@@ -174,6 +174,13 @@ static int smb_full_audit_mknod(vfs_handle_struct *handle,
const char *pathname, mode_t mode, SMB_DEV_T dev);
static char *smb_full_audit_realpath(vfs_handle_struct *handle,
const char *path, char *resolved_path);
+static NTSTATUS smb_full_audit_notify_watch(struct vfs_handle_struct *handle,
+ struct sys_notify_context *ctx,
+ struct notify_entry *e,
+ void (*callback)(struct sys_notify_context *ctx,
+ void *private_data,
+ struct notify_event *ev),
+ void *private_data, void *handle_p);
static int smb_full_audit_chflags(vfs_handle_struct *handle,
const char *path, uint flags);
static size_t smb_full_audit_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
@@ -399,6 +406,8 @@ static vfs_op_tuple audit_op_tuples[] = {
SMB_VFS_LAYER_LOGGER},
{SMB_VFS_OP(smb_full_audit_realpath), SMB_VFS_OP_REALPATH,
SMB_VFS_LAYER_LOGGER},
+ {SMB_VFS_OP(smb_full_audit_notify_watch),SMB_VFS_OP_NOTIFY_WATCH,
+ SMB_VFS_LAYER_LOGGER},
{SMB_VFS_OP(smb_full_audit_chflags), SMB_VFS_OP_CHFLAGS,
SMB_VFS_LAYER_LOGGER},
@@ -1410,6 +1419,23 @@ static char *smb_full_audit_realpath(vfs_handle_struct *handle,
return result;
}
+static NTSTATUS smb_full_audit_notify_watch(struct vfs_handle_struct *handle,
+ struct sys_notify_context *ctx,
+ struct notify_entry *e,
+ void (*callback)(struct sys_notify_context *ctx,
+ void *private_data,
+ struct notify_event *ev),
+ void *private_data, void *handle_p)
+{
+ NTSTATUS result;
+
+ result = SMB_VFS_NEXT_NOTIFY_WATCH(handle, ctx, e, callback, private_data, handle_p);
+
+ do_log(SMB_VFS_OP_NOTIFY_WATCH, NT_STATUS_IS_OK(result), handle, "");
+
+ return result;
+}
+
static int smb_full_audit_chflags(vfs_handle_struct *handle,
const char *path, uint flags)
{