From: Ralph Boehme Date: Sat, 19 Oct 2019 13:36:15 +0000 (+0200) Subject: vfs_zfsacl: pass nfs4_params to smb_set_nt_acl_nfs4() X-Git-Tag: ldb-2.1.0~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd313d0ade15556875ebec060b047a2c6e087b62;p=thirdparty%2Fsamba.git vfs_zfsacl: pass nfs4_params to smb_set_nt_acl_nfs4() Now that we parse nfs4_params in the VFS connect in this module, we can pass it to smb_set_nt_acl_nfs4() which avoids having smb_set_nt_acl_nfs4() parse it *every time* it's called. Signed-off-by: Ralph Boehme Reviewed-by: Andrew Walker Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_zfsacl.c b/source3/modules/vfs_zfsacl.c index 3b8c07db4e5..4588b2735bd 100644 --- a/source3/modules/vfs_zfsacl.c +++ b/source3/modules/vfs_zfsacl.c @@ -228,8 +228,18 @@ static NTSTATUS zfs_set_nt_acl(vfs_handle_struct *handle, files_struct *fsp, uint32_t security_info_sent, const struct security_descriptor *psd) { - return smb_set_nt_acl_nfs4(handle, fsp, NULL, security_info_sent, psd, - zfs_process_smbacl); + struct zfsacl_config_data *config = NULL; + + SMB_VFS_HANDLE_GET_DATA(handle, config, + struct zfsacl_config_data, + return NT_STATUS_INTERNAL_ERROR); + + return smb_set_nt_acl_nfs4(handle, + fsp, + &config->nfs4_params, + security_info_sent, + psd, + zfs_process_smbacl); } static NTSTATUS zfsacl_fget_nt_acl(struct vfs_handle_struct *handle,