]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: time_audit: Remove smb_time_audit_removexattr(). No longer called.
authorJeremy Allison <jra@samba.org>
Mon, 22 Mar 2021 19:14:25 +0000 (12:14 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 7 Apr 2021 16:26:28 +0000 (16:26 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_time_audit.c

index 175da80ff84cc6ff2a9164feb080e6c2592758e9..97e893b9ba41fc843c6c331af9bf83033b51f8fb 100644 (file)
@@ -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,