diff options
author | Ralph Boehme <slow@samba.org> | 2021-01-20 15:02:03 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2021-01-28 08:11:49 +0000 |
commit | 1e5c760e82ecf54ce8c93659cedc82634f1c0542 (patch) | |
tree | 79dc1b0144504b4bac7ef6dda0235aa2d69b29ea /source3/modules | |
parent | f82e89c26edfa625bad600c66186215551f6dd3a (diff) | |
download | samba-1e5c760e82ecf54ce8c93659cedc82634f1c0542.tar.gz |
vfs_full_audit: support real dirfsps in smb_full_audit_unlinkat()
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_full_audit.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c index 82ad6368a49..71577c8aaeb 100644 --- a/source3/modules/vfs_full_audit.c +++ b/source3/modules/vfs_full_audit.c @@ -1551,16 +1551,25 @@ static int smb_full_audit_unlinkat(vfs_handle_struct *handle, const struct smb_filename *smb_fname, int flags) { + struct smb_filename *full_fname = NULL; int result; + full_fname = full_path_from_dirfsp_atname(talloc_tos(), + dirfsp, + smb_fname); + if (full_fname == NULL) { + return -1; + } + result = SMB_VFS_NEXT_UNLINKAT(handle, dirfsp, smb_fname, flags); do_log(SMB_VFS_OP_UNLINKAT, (result >= 0), 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 result; } |