Ensure when calculating the access mask for MAXIMUM_ALLOWED_ACCESS that we add in...
commit3c94475a06472c71ec364d4c3e098c9740f702bd
authorJeremy Allison <jra@samba.org>
Tue, 13 Nov 2012 00:22:52 +0000 (12 16:22 -0800)
committerKarolin Seeger <kseeger@samba.org>
Thu, 6 Dec 2012 08:40:25 +0000 (6 09:40 +0100)
treeb156c777dc66a516bf0b6de545281841bfdb5958
parent7f687101ce9d79c07d7616b188c9088b8bc06d26
Ensure when calculating the access mask for MAXIMUM_ALLOWED_ACCESS that we add in FILE_READ_ATTRIBUTES, even if this doesn't come from the file/directory ACL.

If we can access the path to this file, by
default we have FILE_READ_ATTRIBUTES from the
containing directory. See the section.
"Algorithm to Check Access to an Existing File"
in MS-FSA.pdf.
(cherry picked from commit 32892d6357469287bf9594b269bde5b9ffabd54e)
source3/smbd/open.c