mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3: VFS: vfs_time_audit. Remove symlink_fn(). No longer used.
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>
This commit is contained in:
parent
2fa1cd37c2
commit
ea5a02e811
@ -1377,27 +1377,6 @@ static bool smb_time_audit_getlock(vfs_handle_struct *handle,
|
|||||||
return result;
|
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,
|
static int smb_time_audit_symlinkat(vfs_handle_struct *handle,
|
||||||
const char *link_contents,
|
const char *link_contents,
|
||||||
struct files_struct *dirfsp,
|
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,
|
.kernel_flock_fn = smb_time_audit_kernel_flock,
|
||||||
.linux_setlease_fn = smb_time_audit_linux_setlease,
|
.linux_setlease_fn = smb_time_audit_linux_setlease,
|
||||||
.getlock_fn = smb_time_audit_getlock,
|
.getlock_fn = smb_time_audit_getlock,
|
||||||
.symlink_fn = smb_time_audit_symlink,
|
|
||||||
.symlinkat_fn = smb_time_audit_symlinkat,
|
.symlinkat_fn = smb_time_audit_symlinkat,
|
||||||
.readlinkat_fn = smb_time_audit_readlinkat,
|
.readlinkat_fn = smb_time_audit_readlinkat,
|
||||||
.linkat_fn = smb_time_audit_linkat,
|
.linkat_fn = smb_time_audit_linkat,
|
||||||
|
Loading…
Reference in New Issue
Block a user