summaryrefslogtreecommitdiffstats
path: root/source3/smbd/vfs.c
diff options
context:
space:
mode:
authorRichard Sharpe <realrichardsharpe@gmail.com>2012-04-27 21:31:34 -0700
committerRichard Sharpe <sharpe@samba.org>2012-04-28 08:05:00 +0200
commit0dc3f423d25d3a50fa39ecee8a8ca13cdfe32267 (patch)
tree38e844a9bb5ccb28ea862ffa0498212c65bb4651 /source3/smbd/vfs.c
parent12ee7933327e99c0a5db8c7b6273775a6fc9c8fd (diff)
downloadsamba-0dc3f423d25d3a50fa39ecee8a8ca13cdfe32267.tar.gz
samba-0dc3f423d25d3a50fa39ecee8a8ca13cdfe32267.tar.xz
samba-0dc3f423d25d3a50fa39ecee8a8ca13cdfe32267.zip
Add an audit file VFS routine so we can handle auditing with SACLs.
Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Sat Apr 28 08:05:00 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/smbd/vfs.c')
-rw-r--r--source3/smbd/vfs.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index 6c9692a65b6..2be6c54a881 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -1958,6 +1958,20 @@ NTSTATUS smb_vfs_call_fset_nt_acl(struct vfs_handle_struct *handle,
psd);
}
+NTSTATUS smb_vfs_call_audit_file(struct vfs_handle_struct *handle,
+ struct smb_filename *file,
+ struct security_acl *sacl,
+ uint32_t access_requested,
+ uint32_t access_denied)
+{
+ VFS_FIND(audit_file);
+ return handle->fns->audit_file_fn(handle,
+ file,
+ sacl,
+ access_requested,
+ access_denied);
+}
+
int smb_vfs_call_chmod_acl(struct vfs_handle_struct *handle, const char *name,
mode_t mode)
{