test_nfs4_acls: Add test for mapping from NFS4 to DACL in config mode special
authorChristof Schmitt <cs@samba.org>
Tue, 2 Jul 2019 19:23:02 +0000 (12:23 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 23 Jul 2019 18:27:26 +0000 (18:27 +0000)
commit829c5ea99685c0629fd67ed0528897534ff35b36
tree7721113f3e3ea6a811cac0a2f3d80e95ee4ec664
parent7ae06d96eb59722154d30e21949f9dba4f2f0bc6
test_nfs4_acls: Add test for mapping from NFS4 to DACL in config mode 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 NFS4 ACL to the
DACL in the security descriptor.

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