test_nfs4_acls: Add test for mapping of special NFS4 ACL entries to DACL entries
authorChristof Schmitt <cs@samba.org>
Tue, 2 Jul 2019 18:46:23 +0000 (11:46 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 23 Jul 2019 18:27:25 +0000 (18:27 +0000)
commitf86148948c7f89307a34e31f6ddede6923149d34
tree6f6f2eb8561cac1ad508ee1531faeddcd4e7dfc7
parente4840e680744bd860beedeb5123704c3c0d6a4d7
test_nfs4_acls: Add test for mapping of special NFS4 ACL entries to DACL entries

In addition to entries for users and groups, NFSv4 ACLs have the concept
of entries for "special" entries. Only the "owner", "group" and
"everyone" entries are currently used in the ACL mapping.

Add a testcase that verifies the mapping from NFSv4 "special" entries to
the DACL in the security descriptor. Verify that only "owner", "group"
and "everyone" are mapped and all other "special" entries are ignored.

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>
source3/modules/test_nfs4_acls.c