return result;
}
-static int smb_time_audit_link(vfs_handle_struct *handle,
- const struct smb_filename *old_smb_fname,
- const struct smb_filename *new_smb_fname)
-{
- int result;
- struct timespec ts1,ts2;
- double timediff;
-
- clock_gettime_mono(&ts1);
- result = SMB_VFS_NEXT_LINK(handle, old_smb_fname, 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("link", timediff,
- new_smb_fname->base_name);
- }
-
- return result;
-}
-
static int smb_time_audit_linkat(vfs_handle_struct *handle,
files_struct *srcfsp,
const struct smb_filename *old_smb_fname,
.getlock_fn = smb_time_audit_getlock,
.symlink_fn = smb_time_audit_symlink,
.readlink_fn = smb_time_audit_readlink,
- .link_fn = smb_time_audit_link,
.linkat_fn = smb_time_audit_linkat,
.mknod_fn = smb_time_audit_mknod,
.realpath_fn = smb_time_audit_realpath,