diff options
author | Ralph Boehme <slow@samba.org> | 2018-12-27 16:32:46 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-01-11 23:11:11 +0100 |
commit | 7f7ce0ec2f3e3cfb46314e5ad3ea6b5c49085f1d (patch) | |
tree | b1b8085d4995cb4b345db39c20f46953d46f89b1 /examples/VFS/skel_transparent.c | |
parent | a62bc3f221bd7d9db6cdbeb89f2c03c6e81eb98d (diff) | |
download | samba-7f7ce0ec2f3e3cfb46314e5ad3ea6b5c49085f1d.tar.gz |
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 <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'examples/VFS/skel_transparent.c')
-rw-r--r-- | examples/VFS/skel_transparent.c | 5 |
1 files changed, 2 insertions, 3 deletions
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, |