summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-08-21 14:44:20 -0700
committerJeremy Allison <jra@samba.org>2019-08-22 18:00:35 +0000
commite37580f45a557ad9f23a7220bd8edae8e6ce7bd5 (patch)
tree8da0f585a6fdcaf305dc6ecd295d57390b9a35d5
parent569865d4a2143d07ef1afbb00df5289123257c35 (diff)
downloadsamba-e37580f45a557ad9f23a7220bd8edae8e6ce7bd5.tar.gz
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 <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
-rw-r--r--source3/modules/vfs_time_audit.c22
1 files changed, 0 insertions, 22 deletions
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,