test_nfs4_acls: Add test for mapping from DACL to special NFS4 ACL entries
authorChristof Schmitt <cs@samba.org>
Tue, 2 Jul 2019 18:53:15 +0000 (11:53 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 26 Aug 2019 10:23:25 +0000 (10:23 +0000)
commitf0581b94b24f2ba615593bfc046b705c99357007
tree81908684cc4dc89d3c6bf2580958f04ed13be572
parentf900a6e12523a3fc28c10e5ac637ed7f4aeeaba1
test_nfs4_acls: Add test for mapping from DACL to special NFS4 ACL entries

Add testcase for mapping from entries in the DACL security descriptor to
"special" entries in the NFSv4 ACL. Verify that the WORLD well-known SID
maps to "everyone" in the NFSv4 ACL. Verify that the "Unix NFS" SID is
ignored, as there is no meaningful mapping for this entry. Verify that
SID entries matching the owner or group are mapped to "special owner"
or "special group", but only if no inheritance flags are used. "special
owner" and "special group" with inheritance flags have the meaning of
CREATOR OWNER and CREATOR GROUP and will be tested in another testcase.

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

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 1f1fa5bde2c76636c1beec39c21067b252ea10be)
source3/modules/test_nfs4_acls.c