diff options
author | Noel Power <noel.power@suse.com> | 2021-04-08 12:50:16 +0100 |
---|---|---|
committer | Noel Power <npower@samba.org> | 2021-04-11 22:27:34 +0000 |
commit | 2bcd5b92e03b0764483052a3b700050d2bb1e95b (patch) | |
tree | d94917f17a70d4be3bdd488d146492b33b10ad2a /source3/modules/vfs_full_audit.c | |
parent | 3df8106edc8d67a596fbc5c8679014492e12e04c (diff) | |
download | samba-2bcd5b92e03b0764483052a3b700050d2bb1e95b.tar.gz |
s3/modules: VFS: full_audit: Remove smb_full_audit_chmod() function
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/modules/vfs_full_audit.c')
-rw-r--r-- | source3/modules/vfs_full_audit.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c index 73e83909341..9e2ec5a1d51 100644 --- a/source3/modules/vfs_full_audit.c +++ b/source3/modules/vfs_full_audit.c @@ -141,7 +141,6 @@ typedef enum _vfs_op_type { SMB_VFS_OP_LSTAT, SMB_VFS_OP_GET_ALLOC_SIZE, SMB_VFS_OP_UNLINKAT, - SMB_VFS_OP_CHMOD, SMB_VFS_OP_FCHMOD, SMB_VFS_OP_FCHOWN, SMB_VFS_OP_LCHOWN, @@ -280,7 +279,6 @@ static struct { { SMB_VFS_OP_LSTAT, "lstat" }, { SMB_VFS_OP_GET_ALLOC_SIZE, "get_alloc_size" }, { SMB_VFS_OP_UNLINKAT, "unlinkat" }, - { SMB_VFS_OP_CHMOD, "chmod" }, { SMB_VFS_OP_FCHMOD, "fchmod" }, { SMB_VFS_OP_FCHOWN, "fchown" }, { SMB_VFS_OP_LCHOWN, "lchown" }, @@ -1576,24 +1574,6 @@ static int smb_full_audit_unlinkat(vfs_handle_struct *handle, return result; } -static int smb_full_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); - - do_log(SMB_VFS_OP_CHMOD, - (result >= 0), - handle, - "%s|%o", - smb_fname_str_do_log(handle->conn, smb_fname), - mode); - - return result; -} - static int smb_full_audit_fchmod(vfs_handle_struct *handle, files_struct *fsp, mode_t mode) { @@ -2964,7 +2944,6 @@ static struct vfs_fn_pointers vfs_full_audit_fns = { .lstat_fn = smb_full_audit_lstat, .get_alloc_size_fn = smb_full_audit_get_alloc_size, .unlinkat_fn = smb_full_audit_unlinkat, - .chmod_fn = smb_full_audit_chmod, .fchmod_fn = smb_full_audit_fchmod, .fchown_fn = smb_full_audit_fchown, .lchown_fn = smb_full_audit_lchown, |