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,
{ 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" },
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)
{
.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,