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)
committerKarolin Seeger <kseeger@samba.org>
Mon, 26 Aug 2019 10:23:26 +0000 (10:23 +0000)
commitf64276397e2c7307048bc2f76a771468ab8c7079
tree34887506ef39a771bafe8b57d5d0edd4f2520cb7
parent92d2e243c308e8417ac76661d1351eafbd782fb8
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>
(cherry picked from commit 7ae06d96eb59722154d30e21949f9dba4f2f0bc6)
source3/modules/test_nfs4_acls.c