examples/VFS/skel_transparent: add missing audit_file_fn
authorRalph Boehme <slow@samba.org>
Tue, 24 Jul 2018 16:58:59 +0000 (18:58 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 24 Jul 2018 22:23:12 +0000 (00:23 +0200)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
examples/VFS/skel_transparent.c

index 7f2c78b2e3bda092b2a8d77d288a1a3bc6493b5f..a8580712c71d82c8aeedb2dfd180aa8114ab52b9 100644 (file)
@@ -1063,6 +1063,19 @@ static bool skel_aio_force(struct vfs_handle_struct *handle,
        return SMB_VFS_NEXT_AIO_FORCE(handle, fsp);
 }
 
+static NTSTATUS skel_audit_file(struct vfs_handle_struct *handle,
+                               struct smb_filename *file,
+                               struct security_acl *sacl,
+                               uint32_t access_requested,
+                               uint32_t access_denied)
+{
+       return SMB_VFS_NEXT_AUDIT_FILE(handle,
+                                      file,
+                                      sacl,
+                                      access_requested,
+                                      access_denied);
+}
+
 /* VFS operations structure */
 
 struct vfs_fn_pointers skel_transparent_fns = {
@@ -1153,6 +1166,7 @@ struct vfs_fn_pointers skel_transparent_fns = {
        .translate_name_fn = skel_translate_name,
        .fsctl_fn = skel_fsctl,
        .readdir_attr_fn = skel_readdir_attr,
+       .audit_file_fn = skel_audit_file,
 
        /* DOS attributes. */
        .get_dos_attributes_fn = skel_get_dos_attributes,