summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2019-06-18 14:04:08 +0200
committerKarolin Seeger <kseeger@samba.org>2019-08-28 09:39:46 +0200
commit104557f2ad5c67fab257927d9aa0931a74113ce2 (patch)
tree0cf3dc3acf68aa01215daaf5ea6a475fa39855a8
parent5604883d06d99a2ed3c1122408e266793de40942 (diff)
downloadsamba-104557f2ad5c67fab257927d9aa0931a74113ce2.tar.gz
CVE-2019-10197: smbd: make sure we reset current_user.{need,done}_chdir in become_root()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14035 Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/smbd/uid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index b6ef02a36b3..9cf09c11a62 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -629,6 +629,9 @@ void smbd_become_root(void)
}
push_conn_ctx();
set_root_sec_ctx();
+
+ current_user.need_chdir = false;
+ current_user.done_chdir = false;
}
/* Unbecome the root user */