test_nfs4_acls: Add test for mapping CREATOR entries to NFS4 ACL entries
authorChristof Schmitt <cs@samba.org>
Tue, 2 Jul 2019 18:55:59 +0000 (11:55 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 23 Jul 2019 18:27:25 +0000 (18:27 +0000)
commitbfcc19b705f83bdd5cf665fd4daf43e7eae997a9
tree09ee09c03fa084880b2064948ca48e3c20d5291f
parent1f1fa5bde2c76636c1beec39c21067b252ea10be
test_nfs4_acls: Add test for mapping CREATOR entries to NFS4 ACL entries

Add testcase for mapping DACL entries CREATOR OWNER and CREATOR GROUP
with inheritance flag in the security descriptor to NFSv4 "special
owner" and "special group" entries. This is the correct mapping for
these entries as inheriting "special owner" and "special group" grants
permissions to the actual owner and owning group of the new file or
directory, similar to what CREATOR entries do.

The other side is that CREATOR entries without any inheritance flags do
not make sense, so these are not mapped to NFSv4 ACL entries.

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