Fix bug #10229 - No access check verification on stream files.
commita6d74c4fd347817abf4f7b5b954db8382dcfb9cd
authorJeremy Allison <jra@samba.org>
Mon, 28 Oct 2013 23:59:20 +0000 (28 16:59 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 8 Nov 2013 09:12:41 +0000 (8 10:12 +0100)
treedc007d650dd61d1e38cbf93e203bd8c9b3200f45
parent5b0caf4a0b9ea141a912c356abe200c3499ad852
Fix bug #10229 - No access check verification on stream files.

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

We need to check if the requested access mask
could be used to open the underlying file (if
it existed), as we're passing in zero for the
access mask to the base filename.

Back-ported for 4.0.x.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: David Disseldorp <ddiss@suse.de>
(Based on master commit 60f922bf1bd8816eacbb32c24793ad1f97a1d9f2)
source3/smbd/open.c