summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_full_audit.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2021-03-16 21:49:14 -0700
committerNoel Power <npower@samba.org>2021-03-22 18:37:34 +0000
commit49bcb913398492f08a3d6d9b1ac36ff0563f71d7 (patch)
tree93726392b06a0d8916f9353fee95a328f6c36c1f /source3/modules/vfs_full_audit.c
parentea5c15358f12a6cd584b52039411e0feb526f380 (diff)
downloadsamba-49bcb913398492f08a3d6d9b1ac36ff0563f71d7.tar.gz
s3: VFS: full_audit: Log full pathname as smb_full_audit_create_dfs_pathat() isn't restricted to dirfsp->conn->cwd_fsp anymore.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Noel Power<npower@samba.org>
Diffstat (limited to 'source3/modules/vfs_full_audit.c')
-rw-r--r--source3/modules/vfs_full_audit.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c
index e89307ce6a1..ee26c6a5bfa 100644
--- a/source3/modules/vfs_full_audit.c
+++ b/source3/modules/vfs_full_audit.c
@@ -895,6 +895,14 @@ static NTSTATUS smb_full_audit_create_dfs_pathat(struct vfs_handle_struct *handl
size_t referral_count)
{
NTSTATUS status;
+ struct smb_filename *full_fname = NULL;
+
+ full_fname = full_path_from_dirfsp_atname(talloc_tos(),
+ dirfsp,
+ smb_fname);
+ if (full_fname == NULL) {
+ return NT_STATUS_NO_MEMORY;
+ }
status = SMB_VFS_NEXT_CREATE_DFS_PATHAT(handle,
dirfsp,
@@ -906,8 +914,9 @@ static NTSTATUS smb_full_audit_create_dfs_pathat(struct vfs_handle_struct *handl
NT_STATUS_IS_OK(status),
handle,
"%s",
- smb_fname_str_do_log(handle->conn, smb_fname));
+ smb_fname_str_do_log(handle->conn, full_fname));
+ TALLOC_FREE(full_fname);
return status;
}