test_nfs4_acls: Add test for mapping from DACL to NFS4 ACL with config special
authorChristof Schmitt <cs@samba.org>
Tue, 2 Jul 2019 19:16:08 +0000 (12:16 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 23 Jul 2019 18:27:26 +0000 (18:27 +0000)
commit7ae06d96eb59722154d30e21949f9dba4f2f0bc6
tree6ca5ef4da236a36314a32e021167cbe0786dff9a
parentf55cdf42a14f314102f2e13cb06d4db48c08ad4b
test_nfs4_acls: Add test for mapping from DACL to NFS4 ACL with config special

The mapping code between NFSv4 ACLs and security descriptors still has
the deprecated config setting "nfs4:mode = special". This should not be
used as it has security problems: All entries matching owner or group
are mapped to "special owner" or "special group", which can change its
meaning when being inherited to a new file or directory with different
owner and owning group.

This mode should eventually be removed, but as long as it still exists
add testcases to verify the expected behavior. This patch adds the
testcase for "nfs4:mode = special" when mapping from the DACL in the
security descriptor to the NFSv4 ACL.

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