From 8c6628f953022f028d24d6a1e7696a44a3b08b33 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 14 Apr 2020 10:19:05 -0700 Subject: [PATCH] s3: VFS: time_audit. Remove get_nt_acl_fn(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/modules/vfs_time_audit.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/source3/modules/vfs_time_audit.c b/source3/modules/vfs_time_audit.c index 9b8835657e7..c173359c086 100644 --- a/source3/modules/vfs_time_audit.c +++ b/source3/modules/vfs_time_audit.c @@ -2239,31 +2239,6 @@ static NTSTATUS smb_time_audit_fget_nt_acl(vfs_handle_struct *handle, return result; } -static NTSTATUS smb_time_audit_get_nt_acl(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - uint32_t security_info, - TALLOC_CTX *mem_ctx, - struct security_descriptor **ppdesc) -{ - NTSTATUS result; - struct timespec ts1,ts2; - double timediff; - - clock_gettime_mono(&ts1); - result = SMB_VFS_NEXT_GET_NT_ACL(handle, smb_fname, security_info, - mem_ctx, ppdesc); - clock_gettime_mono(&ts2); - timediff = nsec_time_diff(&ts2,&ts1)*1.0e-9; - - if (timediff > audit_timeout) { - smb_time_audit_log_fname("get_nt_acl", - timediff, - smb_fname->base_name); - } - - return result; -} - static NTSTATUS smb_time_audit_get_nt_acl_at(vfs_handle_struct *handle, struct files_struct *dirfsp, const struct smb_filename *smb_fname, @@ -2947,7 +2922,6 @@ static struct vfs_fn_pointers vfs_time_audit_fns = { .set_dos_attributes_fn = smb_time_set_dos_attributes, .fset_dos_attributes_fn = smb_time_fset_dos_attributes, .fget_nt_acl_fn = smb_time_audit_fget_nt_acl, - .get_nt_acl_fn = smb_time_audit_get_nt_acl, .get_nt_acl_at_fn = smb_time_audit_get_nt_acl_at, .fset_nt_acl_fn = smb_time_audit_fset_nt_acl, .audit_file_fn = smb_time_audit_audit_file, -- 2.47.3