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