smbd: add {become,change_to}_user_by_fsp() helper functions
authorStefan Metzmacher <metze@samba.org>
Wed, 23 May 2018 09:54:58 +0000 (11:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Jun 2018 06:59:18 +0000 (08:59 +0200)
commite4fb4c1d0efe0f9f1c31eac4e57d60f4bcbc7149
treef20b5377c1be891bd7cb30ad10d90af4260d4472
parent4512b91897fa1bba60005cc4378ffb5879be28f1
smbd: add {become,change_to}_user_by_fsp() helper functions

This can be used if a request operates on two fsp's,
e.g. the offload_write_send/recv code.
This is important if (at least) one of
the shares uses "force user".

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/proto.h
source3/smbd/uid.c