]> git.ipfire.org Git - thirdparty/samba.git/commit
CVE-2019-10197: smbd: make sure that change_to_user_internal() always resets current_...
authorStefan Metzmacher <metze@samba.org>
Thu, 11 Jul 2019 15:01:29 +0000 (17:01 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 28 Aug 2019 07:39:46 +0000 (09:39 +0200)
commit5604883d06d99a2ed3c1122408e266793de40942
tree0c97e1f5216efa9df2e1ac56a9daec51c058b91e
parent4772adbe1ce1693c64e9b3673c8d9359bfa910b4
CVE-2019-10197: smbd: make sure that change_to_user_internal() always resets current_user.done_chdir

We should not leave current_user.done_chdir as true if we didn't call
chdir_current_service() with success.

This caused problems in when calling vfs_ChDir() in pop_conn_ctx() when
chdir_current_service() worked once on one share but later failed on another
share.

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

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