[SCM] Samba Shared Repository - branch v4-15-test updated

Jule Anger janger at samba.org
Mon May 2 07:56:01 UTC 2022

The branch, v4-15-test has been updated
       via  aa6022dd222 vfs_gpfs: Ignore pathref fds for gpfs:recalls check
      from  eed7de8a7e6 s3:passdb: Also allow to handle UPNs in lookup_name_smbconf()


- Log -----------------------------------------------------------------
commit aa6022dd2225705684d305a8d5d058e869d366f9
Author: Christof Schmitt <cs at samba.org>
Date:   Wed Apr 27 15:37:18 2022 -0700

    vfs_gpfs: Ignore pathref fds for gpfs:recalls check
    Setting gpfs:recalls=no should prevent data access to offline files.
    Since Samba 4.14, the VFS openat function is also called with O_PATH to
    get a reference to the path. These accesses should not be blocked,
    otherwise this would prevent offline files from being included in
    directory listings.
    Fix this by skipping the check for pathref fds.
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=15055
    Signed-off-by: Christof Schmitt <cs at samba.org>
    Reviewed-by: Ralph Boehme <slow at samba.org>
    Autobuild-User(master): Ralph Böhme <slow at samba.org>
    Autobuild-Date(master): Thu Apr 28 07:59:47 UTC 2022 on sn-devel-184
    (cherry picked from commit 03d0dd2651c9e6552d6c3d9513810e581339ac08)
    Autobuild-User(v4-15-test): Jule Anger <janger at samba.org>
    Autobuild-Date(v4-15-test): Mon May  2 07:55:37 UTC 2022 on sn-devel-184


Summary of changes:
 source3/modules/vfs_gpfs.c | 1 +
 1 file changed, 1 insertion(+)

Changeset truncated at 500 lines:

diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c
index 70b8c7b903e..eb7a1d3e39a 100644
--- a/source3/modules/vfs_gpfs.c
+++ b/source3/modules/vfs_gpfs.c
@@ -2374,6 +2374,7 @@ static int vfs_gpfs_openat(struct vfs_handle_struct *handle,
 				return -1);
 	if (config->hsm && !config->recalls &&
+	    !fsp->fsp_flags.is_pathref &&
 	    vfs_gpfs_fsp_is_offline(handle, fsp))
 		DBG_DEBUG("Refusing access to offline file %s\n",

Samba Shared Repository

More information about the samba-cvs mailing list