From: Noel Power Date: Thu, 8 Apr 2021 11:46:27 +0000 (+0100) Subject: s3/modules: VFS: extd_audit: Remove audit_chmod() function X-Git-Tag: tevent-0.11.0~1206 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f680b45b0e978631fc3631dd3caefdfb80f2b73;p=thirdparty%2Fsamba.git s3/modules: VFS: extd_audit: Remove audit_chmod() function Signed-off-by: Noel Power Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_extd_audit.c b/source3/modules/vfs_extd_audit.c index 45e8f1c5b3b..98ad9bdcacb 100644 --- a/source3/modules/vfs_extd_audit.c +++ b/source3/modules/vfs_extd_audit.c @@ -339,28 +339,6 @@ static int audit_unlinkat(vfs_handle_struct *handle, return result; } -static int audit_chmod(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - mode_t mode) -{ - int result; - - result = SMB_VFS_NEXT_CHMOD(handle, smb_fname, mode); - - if (lp_syslog() > 0) { - syslog(audit_syslog_priority(handle), "chmod %s mode 0x%x %s%s\n", - smb_fname->base_name, mode, - (result < 0) ? "failed: " : "", - (result < 0) ? strerror(errno) : ""); - } - DEBUG(1, ("vfs_extd_audit: chmod %s mode 0x%x %s %s\n", - smb_fname->base_name, (unsigned int)mode, - (result < 0) ? "failed: " : "", - (result < 0) ? strerror(errno) : "")); - - return result; -} - static int audit_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t mode) { int result; @@ -389,7 +367,6 @@ static struct vfs_fn_pointers vfs_extd_audit_fns = { .close_fn = audit_close, .renameat_fn = audit_renameat, .unlinkat_fn = audit_unlinkat, - .chmod_fn = audit_chmod, .fchmod_fn = audit_fchmod, };