Use existing "acl map full control" parameter to control the adding of the DELETE_CHI...
authorJeremy Allison <jra@samba.org>
Thu, 20 Jun 2013 21:33:30 +0000 (14:33 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 24 Jun 2013 17:33:34 +0000 (19:33 +0200)
commitb00d9d245390a54c5b057915472e0e8b3a7f6bb9
tree9abfd4c381ce71475593c90a75f8d70942e1dfb9
parent398ee49bda81e84c0f1e530bac02fb0fdc869afa
Use existing "acl map full control" parameter to control the adding of the DELETE_CHILD parameter on NFSv4/ZFS/GPFS file ACE's.

Windows maps an open request of GENERIC_ALL on files to 0x1FF specific bits, which
includes DELETE_CHILD even though this has no meaning on file ACE's. If a returned
NFSv4 ACE entry for a file has all other specific bits set except for DELETE (which
comes from the containing directory) and DELETE_CHILD (which has no meaning) then
optionally add it into the returned ACE entry.

This is using the same parameter in the same way as it is currently used
in smbd/posix_acls.c. Note that as this parameter is on by default, it
is already being tested in the existing raw.acl tests.

Fixes issue with Microsoft SMB2 torture test suite found at the interop event
in Redmond, WA.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
source3/modules/nfs4_acls.c