mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
s3: VFS: Implement create_dfs_pathat() in full_audit.
Not yet used. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
51fd875661
commit
23df92810b
@ -101,6 +101,7 @@ typedef enum _vfs_op_type {
|
|||||||
SMB_VFS_OP_STATVFS,
|
SMB_VFS_OP_STATVFS,
|
||||||
SMB_VFS_OP_FS_CAPABILITIES,
|
SMB_VFS_OP_FS_CAPABILITIES,
|
||||||
SMB_VFS_OP_GET_DFS_REFERRALS,
|
SMB_VFS_OP_GET_DFS_REFERRALS,
|
||||||
|
SMB_VFS_OP_CREATE_DFS_PATHAT,
|
||||||
|
|
||||||
/* Directory operations */
|
/* Directory operations */
|
||||||
|
|
||||||
@ -249,6 +250,7 @@ static struct {
|
|||||||
{ SMB_VFS_OP_STATVFS, "statvfs" },
|
{ SMB_VFS_OP_STATVFS, "statvfs" },
|
||||||
{ SMB_VFS_OP_FS_CAPABILITIES, "fs_capabilities" },
|
{ SMB_VFS_OP_FS_CAPABILITIES, "fs_capabilities" },
|
||||||
{ SMB_VFS_OP_GET_DFS_REFERRALS, "get_dfs_referrals" },
|
{ SMB_VFS_OP_GET_DFS_REFERRALS, "get_dfs_referrals" },
|
||||||
|
{ SMB_VFS_OP_CREATE_DFS_PATHAT, "create_dfs_pathat" },
|
||||||
{ 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" },
|
||||||
@ -890,6 +892,29 @@ static NTSTATUS smb_full_audit_get_dfs_referrals(
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static NTSTATUS smb_full_audit_create_dfs_pathat(struct vfs_handle_struct *handle,
|
||||||
|
struct files_struct *dirfsp,
|
||||||
|
const struct smb_filename *smb_fname,
|
||||||
|
const struct referral *reflist,
|
||||||
|
size_t referral_count)
|
||||||
|
{
|
||||||
|
NTSTATUS status;
|
||||||
|
|
||||||
|
status = SMB_VFS_NEXT_CREATE_DFS_PATHAT(handle,
|
||||||
|
dirfsp,
|
||||||
|
smb_fname,
|
||||||
|
reflist,
|
||||||
|
referral_count);
|
||||||
|
|
||||||
|
do_log(SMB_VFS_OP_CREATE_DFS_PATHAT,
|
||||||
|
NT_STATUS_IS_OK(status),
|
||||||
|
handle,
|
||||||
|
"%s",
|
||||||
|
smb_fname_str_do_log(handle->conn, smb_fname));
|
||||||
|
|
||||||
|
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,
|
||||||
@ -2935,6 +2960,7 @@ static struct vfs_fn_pointers vfs_full_audit_fns = {
|
|||||||
.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,
|
.get_dfs_referrals_fn = smb_full_audit_get_dfs_referrals,
|
||||||
|
.create_dfs_pathat_fn = smb_full_audit_create_dfs_pathat,
|
||||||
.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…
x
Reference in New Issue
Block a user