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 /source3/include | |
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 'source3/include')
-rw-r--r-- | source3/include/vfs.h | 6 | ||||
-rw-r--r-- | source3/include/vfs_macros.h | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 4f3db694896..83ae6399a4a 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -969,7 +969,7 @@ struct vfs_fn_pointers { size_t size); struct tevent_req *(*getxattrat_send_fn)( 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, @@ -1481,7 +1481,7 @@ ssize_t smb_vfs_call_getxattr(struct vfs_handle_struct *handle, size_t size); struct tevent_req *smb_vfs_call_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, @@ -1910,7 +1910,7 @@ ssize_t vfs_not_implemented_getxattr(vfs_handle_struct *handle, size_t size); struct tevent_req *vfs_not_implemented_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, diff --git a/source3/include/vfs_macros.h b/source3/include/vfs_macros.h index a13680c239e..7a0f14ef08d 100644 --- a/source3/include/vfs_macros.h +++ b/source3/include/vfs_macros.h @@ -515,18 +515,18 @@ #define SMB_VFS_NEXT_GETXATTR(handle,smb_fname,name,value,size) \ smb_vfs_call_getxattr((handle)->next,(smb_fname),(name),(value),(size)) -#define SMB_VFS_GETXATTRAT_SEND(mem_ctx,evg,dir_fsp,smb_fname, \ +#define SMB_VFS_GETXATTRAT_SEND(mem_ctx,ev,dir_fsp,smb_fname, \ xattr_name, alloc_hint) \ - smb_vfs_call_getxattrat_send((mem_ctx),(evg), \ + smb_vfs_call_getxattrat_send((mem_ctx),(ev), \ (dir_fsp)->conn->vfs_handles, \ (dir_fsp),(smb_fname),(xattr_name), \ (alloc_hint)) #define SMB_VFS_GETXATTRAT_RECV(req, aio_state, mem_ctx, xattr_value) \ smb_vfs_call_getxattrat_recv((req),(aio_state),(mem_ctx),(xattr_value)) -#define SMB_VFS_NEXT_GETXATTRAT_SEND(mem_ctx,evg,handle,dir_fsp,smb_fname, \ +#define SMB_VFS_NEXT_GETXATTRAT_SEND(mem_ctx,ev,handle,dir_fsp,smb_fname, \ xattr_name,alloc_hint) \ - smb_vfs_call_getxattrat_send((mem_ctx),(evg), \ + smb_vfs_call_getxattrat_send((mem_ctx),(ev), \ (handle)->next, \ (dir_fsp), (smb_fname),(xattr_name), \ (alloc_hint)) |