From ff9ab093309d127cde497a29f24a702e978b49c0 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 22 Mar 2021 12:14:25 -0700 Subject: [PATCH] s3: VFS: time_audit: Remove smb_time_audit_removexattr(). No longer called. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/modules/vfs_time_audit.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/source3/modules/vfs_time_audit.c b/source3/modules/vfs_time_audit.c index 175da80ff84..97e893b9ba4 100644 --- a/source3/modules/vfs_time_audit.c +++ b/source3/modules/vfs_time_audit.c @@ -2663,27 +2663,6 @@ static ssize_t smb_time_audit_flistxattr(struct vfs_handle_struct *handle, return result; } -static int smb_time_audit_removexattr(struct vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - const char *name) -{ - int result; - struct timespec ts1,ts2; - double timediff; - - clock_gettime_mono(&ts1); - result = SMB_VFS_NEXT_REMOVEXATTR(handle, smb_fname, name); - clock_gettime_mono(&ts2); - timediff = nsec_time_diff(&ts2,&ts1)*1.0e-9; - - if (timediff > audit_timeout) { - smb_time_audit_log_fname("removexattr", timediff, - smb_fname->base_name); - } - - return result; -} - static int smb_time_audit_fremovexattr(struct vfs_handle_struct *handle, struct files_struct *fsp, const char *name) @@ -2912,7 +2891,6 @@ static struct vfs_fn_pointers vfs_time_audit_fns = { .getxattrat_recv_fn = smb_time_audit_getxattrat_recv, .fgetxattr_fn = smb_time_audit_fgetxattr, .flistxattr_fn = smb_time_audit_flistxattr, - .removexattr_fn = smb_time_audit_removexattr, .fremovexattr_fn = smb_time_audit_fremovexattr, .fsetxattr_fn = smb_time_audit_fsetxattr, .aio_force_fn = smb_time_audit_aio_force,