summaryrefslogtreecommitdiff
path: root/examples/VFS
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2018-07-24 18:58:59 +0200
committerStefan Metzmacher <metze@samba.org>2018-07-25 00:23:12 +0200
commit68b8e5a5197898091041af887211caad4196ae07 (patch)
tree01560c7bd23e0526898a6f0d10f421b9a033e6c9 /examples/VFS
parentf9db9aeeab9ce1e36b5af8784fd5e5c9c4014fe8 (diff)
downloadsamba-68b8e5a5197898091041af887211caad4196ae07.tar.gz
examples/VFS/skel_transparent: add missing audit_file_fn
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'examples/VFS')
-rw-r--r--examples/VFS/skel_transparent.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index 7f2c78b2e3b..a8580712c71 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -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,