test_nfs4_acls: Add test for mapping permissions from DACL to NFS4 ACL
authorChristof Schmitt <cs@samba.org>
Tue, 2 Jul 2019 18:35:34 +0000 (11:35 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 23 Jul 2019 18:27:25 +0000 (18:27 +0000)
commite4840e680744bd860beedeb5123704c3c0d6a4d7
tree07cd649d26add60ffa0f4a3d6b02aff3873f688d
parent1767027b44a9e4ebd865022e3f8abb0c72bf15c6
test_nfs4_acls: Add test for mapping permissions from DACL to NFS4 ACL

Add testcase for mapping the permission flags from the DACL in the
Security Descriptor to a NFSv4 ACL. The mapping is straight-forward as
the same permission bits exist for Security Descriptors and NFSv4 ACLs.
In addition, the code also maps from the generic DACL permissions to a
set of NFSv4 permissions, also verify this mapping.

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