vfs_nfs4acl_xattr: support for NFS 4.0 and 4.1 ACLs from NFS4 mount
authorRalph Boehme <slow@samba.org>
Thu, 29 Nov 2018 10:01:59 +0000 (11:01 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 18 Mar 2019 19:21:25 +0000 (19:21 +0000)
commitc6ab2e6b735901c8aca33928b4b17f3c784aede0
tree2fe44d1ff38836bef621840fbed896f0b822eae9
parentebf9826158c2109a6d5702ad26aa41afdf982386
vfs_nfs4acl_xattr: support for NFS 4.0 and 4.1 ACLs from NFS4 mount

This adds a new main switch "nfs" to "nfs4acl_xattr:encoding" which
enables to use NFS4 ACLs from an NFS4 mount on a Linux box. Tested with
a FreeBSD NFS4 server.

Supports both NFS 4.0 and 4.1 ACLs.

By default NFS4 servers send user and group identifiers in ACLs as
strings in the format "[USER|GROUP]@DNSDOMAIN". Some NFS4 servers
support sending identifiers as numeric strings. This module does support
this as well, the config knob "nfs4acl_xattr:nfs4_id_numeric = yes|no"
controls behaviour.

When "nfs4acl_xattr:encoding" is set to "nfs", the new option
"nfs4acl_xattr:validate_mode", which defauts to "yes" is set to "no" to
avoid checking and munging the mode on files.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
docs-xml/manpages/vfs_nfs4acl_xattr.8.xml
source3/modules/nfs4acl_xattr.h
source3/modules/nfs4acl_xattr_nfs.c [new file with mode: 0644]
source3/modules/nfs4acl_xattr_nfs.h [new file with mode: 0644]
source3/modules/vfs_nfs4acl_xattr.c
source3/modules/wscript_build