test_nfs4_acls: Add test for mapping from DACL to special NFS4 ACL entries
commitaa466a0104d95f0a512c5d740df1c17a06116bd4
authorChristof Schmitt <cs@samba.org>
Tue, 2 Jul 2019 18:53:15 +0000 (2 11:53 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 26 Aug 2019 07:06:17 +0000 (26 07:06 +0000)
tree8b9855eb22b9bc67ba2c6c8fe10b7fe1e674a482
parentdda9e525c55c3602060fffc773e1d31b524ba93f
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