mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
c6ab2e6b73
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>
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
/*
|
|
* Copyright (C) Ralph Boehme 2018
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#ifndef __NFS4ACL_XATTR_NFS_H__
|
|
#define __NFS4ACL_XATTR_NFS_H__
|
|
|
|
#define NFS4ACL_NFS_XATTR_NAME "system.nfs4_acl"
|
|
|
|
NTSTATUS nfs4acl_nfs_blob_to_smb4(struct vfs_handle_struct *handle,
|
|
TALLOC_CTX *mem_ctx,
|
|
DATA_BLOB *blob,
|
|
struct SMB4ACL_T **_smb4acl);
|
|
|
|
NTSTATUS nfs4acl_smb4acl_to_nfs_blob(vfs_handle_struct *handle,
|
|
TALLOC_CTX *mem_ctx,
|
|
struct SMB4ACL_T *smbacl,
|
|
DATA_BLOB *blob);
|
|
|
|
#endif /* __NFS4ACL_XATTR_NFS_H__ */
|