smbd/posix_acls: reuse secutiry token from session info if exist
authorJoe Guo <joeg@catalyst.net.nz>
Tue, 3 Jul 2018 23:09:50 +0000 (11:09 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Jul 2018 02:31:59 +0000 (04:31 +0200)
commitc9876defe6c641adc9935d85fca50702974a14d6
treeb0d22930d8ced7e058686f1c519f44aad06b5de8
parenta9c6ec66bc52d288dcd9f26371e3639345ffe8b5
smbd/posix_acls: reuse secutiry token from session info if exist

If session info was passed down from upstream, then try to use it to get
security token, other then creating token every time.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13521

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source3/smbd/posix_acls.c