1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00
Stefan Metzmacher 661a7cdb0a CVE-2019-10197: smbd: split change_to_user_impersonate() out of change_to_user_internal()
This makes sure we always call chdir_current_service() even
when we still impersonated the user. Which is important
in order to run the SMB* request within the correct working directory
and only if the user has permissions to enter that directory.

It makes sure we always update conn->lastused_count
in chdir_current_service() for each request.

Note that vfs_ChDir() (called from chdir_current_service())
maintains its own cache and avoids calling SMB_VFS_CHDIR()
if possible.

It means we still avoid syscalls if we get a multiple requests
for the same session/tcon tuple.

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>
2019-08-27 13:16:24 +02:00
..
2019-03-05 19:29:10 +00:00
2018-11-09 00:47:22 +01:00
2019-01-08 03:40:26 +01:00
2018-12-20 23:40:24 +01:00
2018-12-20 23:40:24 +01:00
2019-06-13 08:52:29 +00:00
2018-12-20 23:40:24 +01:00
2017-12-05 04:58:26 +01:00
2018-12-20 23:40:24 +01:00
2019-01-04 16:29:50 +01:00