]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_time_audit. Remove symlink_fn(). No longer used.
authorJeremy Allison <jra@samba.org>
Fri, 30 Aug 2019 21:39:53 +0000 (14:39 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 3 Sep 2019 21:15:44 +0000 (21:15 +0000)
NB, this will now fail smb_vfs_assert_all_fns()
until we remove the symlink_fn() from the VFS definitions.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
source3/modules/vfs_time_audit.c

index e2236f16af04dde8958238a03e19cd0d9bdbd014..4d1e4793e5ef87a917089fe09e07d98df2c7bd51 100644 (file)
@@ -1377,27 +1377,6 @@ static bool smb_time_audit_getlock(vfs_handle_struct *handle,
        return result;
 }
 
-static int smb_time_audit_symlink(vfs_handle_struct *handle,
-                               const char *link_contents,
-                               const struct smb_filename *new_smb_fname)
-{
-       int result;
-       struct timespec ts1,ts2;
-       double timediff;
-
-       clock_gettime_mono(&ts1);
-       result = SMB_VFS_NEXT_SYMLINK(handle, link_contents, new_smb_fname);
-       clock_gettime_mono(&ts2);
-       timediff = nsec_time_diff(&ts2,&ts1)*1.0e-9;
-
-       if (timediff > audit_timeout) {
-               smb_time_audit_log_fname("symlink", timediff,
-                       new_smb_fname->base_name);
-       }
-
-       return result;
-}
-
 static int smb_time_audit_symlinkat(vfs_handle_struct *handle,
                                const char *link_contents,
                                struct files_struct *dirfsp,
@@ -2880,7 +2859,6 @@ static struct vfs_fn_pointers vfs_time_audit_fns = {
        .kernel_flock_fn = smb_time_audit_kernel_flock,
        .linux_setlease_fn = smb_time_audit_linux_setlease,
        .getlock_fn = smb_time_audit_getlock,
-       .symlink_fn = smb_time_audit_symlink,
        .symlinkat_fn = smb_time_audit_symlinkat,
        .readlinkat_fn = smb_time_audit_readlinkat,
        .linkat_fn = smb_time_audit_linkat,