mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3: vfs: full_audit. Add missing get_dfs_referrals_fn().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
70174af615
commit
40a8a72d8f
@ -97,8 +97,7 @@ typedef enum _vfs_op_type {
|
|||||||
SMB_VFS_OP_GET_SHADOW_COPY_DATA,
|
SMB_VFS_OP_GET_SHADOW_COPY_DATA,
|
||||||
SMB_VFS_OP_STATVFS,
|
SMB_VFS_OP_STATVFS,
|
||||||
SMB_VFS_OP_FS_CAPABILITIES,
|
SMB_VFS_OP_FS_CAPABILITIES,
|
||||||
|
SMB_VFS_OP_GET_DFS_REFERRALS,
|
||||||
/* Missing get_dfs_referrals */
|
|
||||||
|
|
||||||
/* Directory operations */
|
/* Directory operations */
|
||||||
|
|
||||||
@ -248,7 +247,7 @@ static struct {
|
|||||||
{ SMB_VFS_OP_GET_SHADOW_COPY_DATA, "get_shadow_copy_data" },
|
{ SMB_VFS_OP_GET_SHADOW_COPY_DATA, "get_shadow_copy_data" },
|
||||||
{ SMB_VFS_OP_STATVFS, "statvfs" },
|
{ SMB_VFS_OP_STATVFS, "statvfs" },
|
||||||
{ SMB_VFS_OP_FS_CAPABILITIES, "fs_capabilities" },
|
{ SMB_VFS_OP_FS_CAPABILITIES, "fs_capabilities" },
|
||||||
/* Missing get_dfs_referrals */
|
{ SMB_VFS_OP_GET_DFS_REFERRALS, "get_dfs_referrals" },
|
||||||
{ SMB_VFS_OP_OPENDIR, "opendir" },
|
{ SMB_VFS_OP_OPENDIR, "opendir" },
|
||||||
{ SMB_VFS_OP_FDOPENDIR, "fdopendir" },
|
{ SMB_VFS_OP_FDOPENDIR, "fdopendir" },
|
||||||
{ SMB_VFS_OP_READDIR, "readdir" },
|
{ SMB_VFS_OP_READDIR, "readdir" },
|
||||||
@ -759,6 +758,20 @@ static uint32_t smb_full_audit_fs_capabilities(struct vfs_handle_struct *handle,
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static NTSTATUS smb_full_audit_get_dfs_referrals(
|
||||||
|
struct vfs_handle_struct *handle,
|
||||||
|
struct dfs_GetDFSReferral *r)
|
||||||
|
{
|
||||||
|
NTSTATUS status;
|
||||||
|
|
||||||
|
status = SMB_VFS_NEXT_GET_DFS_REFERRALS(handle, r);
|
||||||
|
|
||||||
|
do_log(SMB_VFS_OP_GET_DFS_REFERRALS, NT_STATUS_IS_OK(status),
|
||||||
|
handle, "");
|
||||||
|
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
static NTSTATUS smb_full_audit_snap_check_path(struct vfs_handle_struct *handle,
|
static NTSTATUS smb_full_audit_snap_check_path(struct vfs_handle_struct *handle,
|
||||||
TALLOC_CTX *mem_ctx,
|
TALLOC_CTX *mem_ctx,
|
||||||
const char *service_path,
|
const char *service_path,
|
||||||
@ -2353,9 +2366,7 @@ static struct vfs_fn_pointers vfs_full_audit_fns = {
|
|||||||
.get_shadow_copy_data_fn = smb_full_audit_get_shadow_copy_data,
|
.get_shadow_copy_data_fn = smb_full_audit_get_shadow_copy_data,
|
||||||
.statvfs_fn = smb_full_audit_statvfs,
|
.statvfs_fn = smb_full_audit_statvfs,
|
||||||
.fs_capabilities_fn = smb_full_audit_fs_capabilities,
|
.fs_capabilities_fn = smb_full_audit_fs_capabilities,
|
||||||
|
.get_dfs_referrals_fn = smb_full_audit_get_dfs_referrals,
|
||||||
/* Missing get_dfs_referrals_fn */
|
|
||||||
|
|
||||||
.opendir_fn = smb_full_audit_opendir,
|
.opendir_fn = smb_full_audit_opendir,
|
||||||
.fdopendir_fn = smb_full_audit_fdopendir,
|
.fdopendir_fn = smb_full_audit_fdopendir,
|
||||||
.readdir_fn = smb_full_audit_readdir,
|
.readdir_fn = smb_full_audit_readdir,
|
||||||
|
Loading…
Reference in New Issue
Block a user