git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
CVE-2019-10197: smbd: make sure we reset current_user.{need,done}_chdir in become_root()
[samba.git]
/
source3
/
smbd
/
uid.c
diff --git
a/source3/smbd/uid.c
b/source3/smbd/uid.c
index 2b3b25fa446986d74f054ec7832af38bf98bdd12..ac2f645e6ca803b0feeee0df5b08b90f47f6433f 100644
(file)
--- a/
source3/smbd/uid.c
+++ b/
source3/smbd/uid.c
@@
-624,6
+624,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 */