From: Jeremy Allison Date: Wed, 21 Aug 2019 21:44:20 +0000 (-0700) Subject: s3: VFS: vfs_time_audit. Remove mknod_fn(). No longer used. X-Git-Tag: tevent-0.10.1~190 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e37580f45a557ad9f23a7220bd8edae8e6ce7bd5;p=thirdparty%2Fsamba.git s3: VFS: vfs_time_audit. Remove mknod_fn(). No longer used. 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 Reviewed-by: Ralph Böhme --- diff --git a/source3/modules/vfs_time_audit.c b/source3/modules/vfs_time_audit.c index d449f955a6b..929e9b001de 100644 --- a/source3/modules/vfs_time_audit.c +++ b/source3/modules/vfs_time_audit.c @@ -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,