]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/modules: VFS: audit: Remove audit_chmod
authorNoel Power <noel.power@suse.com>
Thu, 8 Apr 2021 11:35:56 +0000 (12:35 +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_audit.c

index 72d982b88ae391bef4b07be2703383df7118e0cd..2b0171b9c094de2808aa13d5c92886f7441747bf 100644 (file)
@@ -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,
 };