From 7f7ce0ec2f3e3cfb46314e5ad3ea6b5c49085f1d Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 27 Dec 2018 16:32:46 +0100 Subject: s3:smbd: let SMB_VFS_GETXATTRAT_SEND() do explicit impersonation SMB_VFS_GETXATTRAT_SEND() gets passed a raw event context and the default implementation uses that as well a raw threadpool. Impersonation is done explicitly instead of by the tevent and pthreadpool wrappers. Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- examples/VFS/skel_opaque.c | 3 +-- examples/VFS/skel_transparent.c | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index 054de50197e..b3cd83a3e42 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -873,14 +873,13 @@ struct skel_getxattrat_state { static struct tevent_req *skel_getxattrat_send( TALLOC_CTX *mem_ctx, - const struct smb_vfs_ev_glue *evg, + struct tevent_context *ev, struct vfs_handle_struct *handle, files_struct *dir_fsp, const struct smb_filename *smb_fname, const char *xattr_name, size_t alloc_hint) { - struct tevent_context *ev = smb_vfs_ev_glue_ev_ctx(evg); struct tevent_req *req = NULL; struct skel_getxattrat_state *state = NULL; diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index cff52fa185e..4e978577837 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -1094,14 +1094,13 @@ static void skel_getxattrat_done(struct tevent_req *subreq); static struct tevent_req *skel_getxattrat_send( TALLOC_CTX *mem_ctx, - const struct smb_vfs_ev_glue *evg, + struct tevent_context *ev, struct vfs_handle_struct *handle, files_struct *dir_fsp, const struct smb_filename *smb_fname, const char *xattr_name, size_t alloc_hint) { - struct tevent_context *ev = smb_vfs_ev_glue_ev_ctx(evg); struct tevent_req *req = NULL; struct skel_getxattrat_state *state = NULL; struct tevent_req *subreq = NULL; @@ -1113,7 +1112,7 @@ static struct tevent_req *skel_getxattrat_send( } subreq = SMB_VFS_NEXT_GETXATTRAT_SEND(state, - evg, + ev, handle, dir_fsp, smb_fname, -- cgit v1.2.1