]> git.ipfire.org Git - thirdparty/samba.git/commit
nfs4_acls: Add additional owner entry when mapping to NFS4 ACL with IDMAP_TYPE_BOTH
authorChristof Schmitt <cs@samba.org>
Wed, 17 Jul 2019 17:49:47 +0000 (10:49 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 26 Aug 2019 10:23:28 +0000 (10:23 +0000)
commit657f79f859492be9f9b21481cb9326fc2c9914a7
treeda8fa4833ac104799574154dcf13c201d4de4c17
parentd297f347dd15407cee0e2d18a27a54caaa4047ab
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