]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/modules: VFS: extd_audit: Remove audit_chmod() function
authorNoel Power <noel.power@suse.com>
Thu, 8 Apr 2021 11:46:27 +0000 (12:46 +0100)
committerNoel Power <npower@samba.org>
Sun, 11 Apr 2021 22:27:34 +0000 (22:27 +0000)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_extd_audit.c

index 45e8f1c5b3b904e35c327865fb974048e732a4e6..98ad9bdcacbbe2c16fe71ca8a0d263e736f3c478 100644 (file)
@@ -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,
 };