From: Noel Power Date: Thu, 8 Apr 2021 11:35:56 +0000 (+0100) Subject: s3/modules: VFS: audit: Remove audit_chmod X-Git-Tag: tevent-0.11.0~1211 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4e1598bbbfff92752763156e70bdb9ec0ab6278;p=thirdparty%2Fsamba.git s3/modules: VFS: audit: Remove audit_chmod Signed-off-by: Noel Power Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_audit.c b/source3/modules/vfs_audit.c index 72d982b88ae..2b0171b9c09 100644 --- a/source3/modules/vfs_audit.c +++ b/source3/modules/vfs_audit.c @@ -294,22 +294,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); - - 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) : ""); - - return result; -} - static int audit_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t mode) { int result; @@ -332,7 +316,6 @@ static struct vfs_fn_pointers vfs_audit_fns = { .close_fn = audit_close, .renameat_fn = audit_renameat, .unlinkat_fn = audit_unlinkat, - .chmod_fn = audit_chmod, .fchmod_fn = audit_fchmod, };