nfs4_acls: Add additional owner entry when mapping to NFS4 ACL with IDMAP_TYPE_BOTH
commite637a2213e5bd99da53314b9493ecaf86cf8f5de
authorChristof Schmitt <cs@samba.org>
Wed, 17 Jul 2019 17:49:47 +0000 (17 10:49 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 23 Aug 2019 08:59:26 +0000 (23 08:59 +0000)
tree0a22f53ea08b950434e9e301bfb8060b5c5da563
parent6996ae8fd6b14c9937a4a603509b99087b22a153
nfs4_acls: Add additional owner entry when mapping to NFS4 ACL with IDMAP_TYPE_BOTH

With IDMAP_TYPE_BOTH, all entries have to be mapped to group entries.
In order to have the file system reflect the owner permissions in the
POSIX modebits, create a second entry for the user. This will be mapped
to the "special owner" entry.

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 b796119e2df38d1935064556934dd10da6f3d339)
source3/modules/nfs4_acls.c
source3/modules/test_nfs4_acls.c