]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_time_audit. Remove mknod_fn(). No longer used.
authorJeremy Allison <jra@samba.org>
Wed, 21 Aug 2019 21:44:20 +0000 (14:44 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 22 Aug 2019 18:00:35 +0000 (18:00 +0000)
NB, this will now fail smb_vfs_assert_all_fns()
until we remove the mknod_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 d449f955a6bfd263cff7ff671b6cc9a517304cf8..929e9b001de9c1723fc4eabefe8b42ca381f6ae8 100644 (file)
@@ -1450,27 +1450,6 @@ static int smb_time_audit_linkat(vfs_handle_struct *handle,
        return result;
 }
 
-static int smb_time_audit_mknod(vfs_handle_struct *handle,
-                               const struct smb_filename *smb_fname,
-                               mode_t mode,
-                               SMB_DEV_T dev)
-{
-       int result;
-       struct timespec ts1,ts2;
-       double timediff;
-
-       clock_gettime_mono(&ts1);
-       result = SMB_VFS_NEXT_MKNOD(handle, smb_fname, mode, dev);
-       clock_gettime_mono(&ts2);
-       timediff = nsec_time_diff(&ts2,&ts1)*1.0e-9;
-
-       if (timediff > audit_timeout) {
-               smb_time_audit_log_smb_fname("mknod", timediff, smb_fname);
-       }
-
-       return result;
-}
-
 static int smb_time_audit_mknodat(vfs_handle_struct *handle,
                                files_struct *dirfsp,
                                const struct smb_filename *smb_fname,
@@ -2875,7 +2854,6 @@ static struct vfs_fn_pointers vfs_time_audit_fns = {
        .symlink_fn = smb_time_audit_symlink,
        .readlink_fn = smb_time_audit_readlink,
        .linkat_fn = smb_time_audit_linkat,
-       .mknod_fn = smb_time_audit_mknod,
        .mknodat_fn = smb_time_audit_mknodat,
        .realpath_fn = smb_time_audit_realpath,
        .chflags_fn = smb_time_audit_chflags,