CVE-2017-2619: s3: smbd: Create and use open_dir_safely(). Use from OpenDir().
commit556f7dd4a5d245c49ef52ae639c9671245713fe7
authorJeremy Allison <jra@samba.org>
Tue, 20 Dec 2016 00:35:00 +0000 (19 16:35 -0800)
committerKarolin Seeger <kseeger@samba.org>
Wed, 22 Mar 2017 09:48:40 +0000 (22 10:48 +0100)
tree7236e7a2ae9a44f0eda3d20597aef01231c41721
parenta028e01a2b0126dd61606aa16d98ed4696ccfbab
CVE-2017-2619: s3: smbd: Create and use open_dir_safely(). Use from OpenDir().

Hardens OpenDir against TOC/TOU races.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
source3/smbd/dir.c